WC_Payment_Gateway_CC::payment_fields()publicWC 2.6.0

Builds our payment fields area - including tokenization fields for logged in users, and the actual payment fields.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

$WC_Payment_Gateway_CC = new WC_Payment_Gateway_CC();
$WC_Payment_Gateway_CC->payment_fields();

Список изменений

С версии 2.6.0 Введена.

Код WC_Payment_Gateway_CC::payment_fields() WC 8.3.1

public function payment_fields() {
	if ( $this->supports( 'tokenization' ) && is_checkout() ) {
		$this->tokenization_script();
		$this->saved_payment_methods();
		$this->form();
		$this->save_payment_method_checkbox();
	} else {
		$this->form();
	}
}