WC_Payment_Token_CC::get_card_type
Returns the card type (mastercard, visa, ...).
Метод класса: WC_Payment_Token_CC{}
Хуков нет.
Возвращает
string. Card type
Использование
$WC_Payment_Token_CC = new WC_Payment_Token_CC(); $WC_Payment_Token_CC->get_card_type( $context );
- $context(строка)
- What the value is for. Valid values are view and edit.
По умолчанию:'view'
Список изменений
| С версии 2.6.0 | Введена. |
Код WC_Payment_Token_CC::get_card_type() WC Payment Token CC::get card type WC 11.1.2
public function get_card_type( $context = 'view' ) {
return $this->get_prop( 'card_type', $context );
}