WC_Payment_Gateway::credit_card_form( array $args = array(), array $fields = array() )

Core credit card form which gateways can use if needed. Deprecated – inherit WC_Payment_Gateway_CC instead.


Description Description


Parameters Parameters

$args

(Optional) Arguments.

Default value: array()

$fields

(Optional) Fields.

Default value: array()


Top ↑

Source Source

File: includes/abstracts/abstract-wc-payment-gateway.php

	public function credit_card_form( $args = array(), $fields = array() ) {
		wc_deprecated_function( 'credit_card_form', '2.6', 'WC_Payment_Gateway_CC->form' );
		$cc_form           = new WC_Payment_Gateway_CC();
		$cc_form->id       = $this->id;
		$cc_form->supports = $this->supports;
		$cc_form->form();
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.