WordPress at Your Fingertips
function is not described

WC_Payment_Gateway::payment_fields() public WC 1.0

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

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_Payment_Gateway::payment_fields() WC 5.5.2

<?php
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.
	}
}