메소드 | 설명 | |
---|---|---|
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. | |
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. |
public get_metadata ( id $token_id ) : array | ||
$token_id | id | |
리턴 | array |
public get_token_by_id ( id $token_id ) : object | ||
$token_id | id | |
리턴 | object |
public get_token_type_by_id ( id $token_id ) : string | ||
$token_id | id | |
리턴 | string |
public get_tokens ( array $args ) : array | ||
$args | array | |
리턴 | array |
public get_users_default_token ( id $user_id ) : object | ||
$user_id | id | |
리턴 | object |
public set_default_status ( id $token_id, $status = true ) : string | ||
$token_id | id | |
리턴 | string |