Create payment method from token

Creates a payment method from the provided token. The token needed for this endpoint is returned from securely collecting the customer's payment method details on the client.


Authorization Scope

Both the merchant secret key and client secret key are authorized to call this endpoint.

Path Params
string
required
Body Params
string
required

The token referencing the customer's payment method information.

string
enum
required

Enum describing the source of the token.

Allowed:
json

Payment token object used for apple_pay and google_pay.

json

JSON object of string key-value pairs that you can attach to the created payment method.

string

The billing postal code.

Responses

Language
Credentials
Header
LoadingLoading…
Response
Choose an example:
application/json