WC_Payment_Token_CC::set_card_type()
Set the card type (mastercard, visa, ...).
Method of the class: WC_Payment_Token_CC{}
No Hooks.
Returns
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() WC Payment Token CC::set card type code WC 9.8.5
public function set_card_type( $type ) { $this->set_prop( 'card_type', $type ); }