WC_Payment_Token_CC::get_card_type( string $context = 'view' )
Returns the card type (mastercard, visa, .
Description Description
..).
Parameters Parameters
- $context
-
(Optional) What the value is for. Valid values are view and edit.
Default value: 'view'
Return Return
(string) Card type
Source Source
File: includes/payment-tokens/class-wc-payment-token-cc.php
public function get_card_type( $context = 'view' ) { return $this->get_prop( 'card_type', $context ); }
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |