WC_Payment_Gateway::payment_fields PHP Method

payment_fields() public method

Override this in your gateway if you have some.
public payment_fields ( )
    public function payment_fields()
    {
        if ($description = $this->get_description()) {
            echo wpautop(wptexturize($description));
        }
        if ($this->supports('default_credit_card_form')) {
            $this->credit_card_form();
            // Deprecated, will be removed in a future version.
        }
    }

Usage Example

 /**
  * Render the payment fields
  *
  * @since 4.0.0
  * @see WC_Payment_Gateway::payment_fields()
  * @see SV_WC_Payment_Gateway_Payment_Form class
  */
 public function payment_fields()
 {
     if ($this->supports_payment_form()) {
         $this->get_payment_form_instance()->render();
     } else {
         parent::payment_fields();
     }
 }
All Usage Examples Of WC_Payment_Gateway::payment_fields