Create a payment method

Links a new payment method token to an existing customer. If the customer has no primary payment method specified, then the new token will become the primary payment method by default. No verification is performed during the linking of payment method.

Path Params
string
required

Auto-generated unique identifier of the customer that will be associated with the payment method token.

Body Params
string
required

Auto-generated unique identifier of the payment method token generated by the Ezypay Vault.

boolean

Specifies this token as the customer's preferred token for making payments. Supported values are true and false. If the customer has no primary payment method specified, then the new token will become the primary payment method by default. However, if the owner already has a primary payment method, then it will not change unless primary is set to true. PromptPay payment method token cannot be set as the primary payment method.

Headers
string
required

Merchant ID

Responses

Language
Response
Choose an example:
application/json