Метод |
Описание |
|
__construct ( mixed $token = '' ) |
Initialize a payment token. |
|
get_display_name ( string $context = 'view' ) : string |
Get type to display to user. |
|
get_gateway_id ( string $context = 'view' ) : string |
Returns the ID of the gateway associated with this payment token. |
|
get_is_default ( string $context = 'view' ) : string |
Returns the ID of the gateway associated with this payment token. |
|
get_token ( string $context = 'view' ) : string |
Returns the raw payment token. |
|
get_type ( string $context = 'view' ) : string |
Returns the type of this payment token (CC, eCheck, or something else). |
|
get_user_id ( string $context = 'view' ) : integer |
Returns the user ID associated with the token or false if this token is not associated. |
|
is_default ( ) : boolean |
Returns if the token is marked as default. |
|
set_default ( boolean $is_default ) |
Marks the payment as default or non-default. |
|
set_gateway_id ( string $gateway_id ) |
Set the gateway ID. |
|
set_token ( string $token ) |
Set the raw payment token. |
|
set_type ( $type ) |
Sets the type of this payment token (CC, eCheck, or something else). |
|
set_user_id ( integer $user_id ) |
Set the user ID for the user associated with this order. |
|
validate ( ) : boolean |
Validate basic token info (token and type are required). |
|