WordPress at Your Fingertips
function is not described

WC_Payment_Gateway_CC::payment_fields() public WC 2.6.0

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

{} It's a method of the class: WC_Payment_Gateway_CC{}

No Hooks.

Return

null. Nothing.

Usage

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

Changelog

Since 2.6.0 Introduced.

Code of WC_Payment_Gateway_CC::payment_fields() WC 5.6.0

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();
	}
}