Paymenttokens
The Payment Tokens resource is responsible for saving payment tokens to a shopper’s profile and order.The Payment Tokens resource is responsible for saving payment tokens to a shopper’s profile and order.The Payment Tokens resource is responsible for saving payment tokens to a shopper’s profile and order.
Create New Payment Token For Order
Create a new payment token for an order. The payment token created will only exist for this order and will not be saved to the shopper’s profile. The newly created payment token will be automatically selected for the order.
Workflow
- Start with paymentmethod-info
GET
the link with rel: paymenttokenform- Fill out the form
POST
the form using the link with rel: createpaymenttokenaction
Request Fields
paymenttokens.payment-token
Type: Name | Description | Type |
---|---|---|
display-name | A description of the payment token to be used for display purposes. | string |
token | The payment token created by a payment tokenization service. | string |
Create New Payment Token For Profile
Create a new payment token for a profile. If the profile does not have default payment method then this payment token will become the default payment method.
Workflow
- Start with paymentmethods
GET
the link with rel: paymenttokenform- Fill out the form
POST
the form using the link with rel: createpaymenttokenaction
Request Fields
paymenttokens.payment-token
Type: Name | Description | Type |
---|---|---|
display-name | A description of the payment token to be used for display purposes. | string |
token | The payment token created by a payment tokenization service. | string |