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.

Method of the class: WC_Payment_Gateway_CC{}

No Hooks.

Return

null. Nothing (null).

Usage

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

Changelog

Since 2.6.0 Introduced.

WC_Payment_Gateway_CC::payment_fields() code WC 8.6.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();
	}
}