WC_Payment_Token_CC::set_card_type()publicWC 2.6.0

Set the card type (mastercard, visa, ...).

Method of the class: WC_Payment_Token_CC{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Payment_Token_CC = new WC_Payment_Token_CC();
$WC_Payment_Token_CC->set_card_type( $type );
$type(string) (required)
Credit card type (mastercard, visa, ...).

Changelog

Since 2.6.0 Introduced.

WC_Payment_Token_CC::set_card_type() code WC 8.7.0

public function set_card_type( $type ) {
	$this->set_prop( 'card_type', $type );
}