WC_Payment_Gateway::payment_fields()publicWC 1.0

If There are no payment fields show the description if set. Override this in your gateway if you have some.

Method of the class: WC_Payment_Gateway{}

No Hooks.

Return

null. Nothing (null).

Usage

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

WC_Payment_Gateway::payment_fields() code WC 8.7.0

public function payment_fields() {
	$description = $this->get_description();
	if ( $description ) {
		echo wpautop( wptexturize( $description ) ); // @codingStandardsIgnoreLine.
	}

	if ( $this->supports( 'default_credit_card_form' ) ) {
		$this->credit_card_form(); // Deprecated, will be removed in a future version.
	}
}