WC_Payment_Token_CC::get_card_type()
Returns the card type (mastercard, visa, ...).
Method of the class: WC_Payment_Token_CC{}
No Hooks.
Return
String
. Card type
Usage
$WC_Payment_Token_CC = new WC_Payment_Token_CC(); $WC_Payment_Token_CC->get_card_type( $context );
- $context(string)
- What the value is for. Valid values are view and edit.
Default: 'view'
Changelog
Since 2.6.0 | Introduced. |
WC_Payment_Token_CC::get_card_type() WC Payment Token CC::get card type code WC 9.7.1
public function get_card_type( $context = 'view' ) { return $this->get_prop( 'card_type', $context ); }