메소드 |
설명 |
|
delete ( WC_Payment_Token $token_id ) |
Remove a payment token from the database by ID. |
|
get ( integer $token_id, $token_result = null ) : WC_Payment_Token | null |
Get a token object by ID. |
|
get_customer_default_token ( integer $customer_id ) : WC_Payment_Token | null |
Returns a customers default token or NULL if there is no default token. |
|
get_customer_tokens ( integer $customer_id, string $gateway_id = '' ) : array |
Returns an array of payment token objects associated with the passed customer ID. |
|
get_order_tokens ( integer $order_id ) : array |
Returns an array of payment token objects associated with the passed order ID. |
|
get_token_type_by_id ( integer $token_id ) : string |
Returns what type (credit card, echeck, etc) of token a token is by ID. |
|
get_tokens ( array $args ) : array |
Gets valid tokens from the database based on user defined criteria. |
|
set_users_default ( integer $user_id, integer $token_id ) |
Loops through all of a users payment tokens and sets is_default to false for all but a specific token. |
|