Automattic\WooCommerce\Blocks\Payments\Integrations

CashOnDelivery::get_payment_method_data()publicWC 1.0

Returns an array of key=>value pairs of data made available to the payment methods script.

Метод класса: CashOnDelivery{}

Хуков нет.

Возвращает

Массив.

Использование

$CashOnDelivery = new CashOnDelivery();
$CashOnDelivery->get_payment_method_data();

Код CashOnDelivery::get_payment_method_data() WC 8.7.0

public function get_payment_method_data() {
	return [
		'title'                    => $this->get_setting( 'title' ),
		'description'              => $this->get_setting( 'description' ),
		'enableForVirtual'         => $this->get_enable_for_virtual(),
		'enableForShippingMethods' => $this->get_enable_for_methods(),
		'supports'                 => $this->get_supported_features(),
	];
}