Метод |
Описание |
|
get_card_type ( string $context = 'view' ) : string |
Returns the card type (mastercard, visa, . |
|
get_display_name ( string $context = 'view' ) : string |
Get type to display to user. |
|
get_expiry_month ( string $context = 'view' ) : string |
Returns the card expiration month (MM). |
|
get_expiry_year ( string $context = 'view' ) : string |
Returns the card expiration year (YYYY). |
|
get_last4 ( string $context = 'view' ) : string |
Returns the last four digits. |
|
set_card_type ( string $type ) |
Set the card type (mastercard, visa, . |
|
set_expiry_month ( string $month ) |
Set the expiration month for the card (formats into MM format). |
|
set_expiry_year ( string $year ) |
Set the expiration year for the card (YYYY format). |
|
set_last4 ( string $last4 ) |
Set the last four digits. |
|
validate ( ) : boolean |
Validate credit card payment tokens. |
|