WordPress at Your Fingertips
function is not described

WC_Payment_Gateway::credit_card_form() public WC 1.0

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

{} 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->credit_card_form( $args, $fields );
$args(array)
Arguments.
$fields(array)
Fields.

Code of WC_Payment_Gateway::credit_card_form() WC 5.5.2

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