Метод |
Описание |
|
create ( WC_Payment_Token &$token ) |
Create a new payment token in the database. |
|
delete ( WC_Payment_Token &$token, boolean $force_delete = false ) |
Remove a payment token from the database. |
|
get_metadata ( id $token_id ) : array |
Returns metadata for a specific payment token. |
|
get_token_by_id ( id $token_id ) : object |
Returns an stdObject of a token. |
|
get_token_type_by_id ( id $token_id ) : string |
Get a token's type by ID. |
|
get_tokens ( array $args ) : array |
Returns an array of objects (stdObject) matching specific token critera. |
|
get_users_default_token ( id $user_id ) : object |
Returns an stdObject of a token for a user's default token. |
|
read ( WC_Payment_Token &$token ) |
Read a token from the database. |
|
set_default_status ( id $token_id, $status = true ) : string |
Update's a tokens default status in the database. Used for quickly
looping through tokens and setting their statuses instead of creating a bunch
of objects. |
|
update ( WC_Payment_Token &$token ) |
Update a payment token. |
|