WC_Payment_Token_CC::get_card_type()publicWC 2.6.0

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

Метод класса: WC_Payment_Token_CC{}

Хуков нет.

Возвращает

Строку. 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 8.7.0

public function get_card_type( $context = 'view' ) {
	return $this->get_prop( 'card_type', $context );
}