Change Payment method
A customer is able to change their payment method for a recurring order. The only payment method that is supported currently is Card.
Use this request to retrieve a snippet where the user can update their payment method. The snippet is valid for 2 hours.
Endpoint
Method: POST
/api/tokens/{token}/payment-methods
Request
URI Parameters
Name | Description | Type | Additional Information |
---|---|---|---|
token | Token returned by CreateOrder request when order is finalized | Guid |
Body Parameters
Name | Description | Type | Additional Information |
---|---|---|---|
TermsUrl | The URL of your terms that will be present in the snippet footer | String |
Response
- Response Model
- Response Sample
Name | Description | Type | Additional Information |
---|---|---|---|
snippet | HTML-snippet that should be placed on the page where you want the Checkout to be presented. The snippet includes a javascript that will be executed at page load and insert an iframe containing the Checkout UI. | String | A unique snippet is generated with every order, do not cache it** **Please inject this snippet without modifying it as it is subject regular changes and updates |
expiration | Validity of the snippet | DateTime | Currently valid for 2 hours |
application/json
{
"snippet": "<iframe src=\"\"></iframe>",
"expiration": "2023-12-01T19:01:55.714942"
}