WC_Payment_Token_Data_Store_Interface::get_token_by_id()publicWC 1.0

Returns an stdObject of a token. Should contain the fields token_id, gateway_id, token, user_id, type, is_default.

Method of the class: WC_Payment_Token_Data_Store_Interface{}

No Hooks.

Return

Object.

Usage

$WC_Payment_Token_Data_Store_Interface = new WC_Payment_Token_Data_Store_Interface();
$WC_Payment_Token_Data_Store_Interface->get_token_by_id( $token_id );
$token_id(int) (required)
Token ID.

WC_Payment_Token_Data_Store_Interface::get_token_by_id() code WC 9.4.2

public function get_token_by_id( $token_id );