WordPress at Your Fingertips
function is not described

WC_Payment_Token_CC::set_card_type() public WC 2.6.0

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

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

No Hooks.

Return

null. Nothing.

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.

Code of WC_Payment_Token_CC::set_card_type() WC 6.1.0

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