| 1 | <?php |
||
| 13 | class WC_Helper_Token { |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Create a token. |
||
| 17 | * |
||
| 18 | * @param string $payment_method Token payment method. |
||
| 19 | * @param int $user_id ID of the token's user, defaults to get_current_user_id(). |
||
| 20 | * @param string $gateway Token's Gateway ID, default to WC_Payment_Gateway_WCPay::GATEWAY_ID |
||
| 21 | */ |
||
| 22 | public static function create_token( $payment_method, $user_id = null, $gateway = WC_Payment_Gateway_WCPay::GATEWAY_ID ) { |
||
| 35 | } |
||
| 36 |