Skip to main content

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​
NameDescriptionTypeAdditional Information
tokenToken returned by CreateOrder request when order is finalizedGuid
required field
Body Parameters​
NameDescriptionTypeAdditional Information
TermsUrlThe URL of your terms that will be present in the snippet footerString
IntegrityPolicyUrlThe URL of your integrity policy that will be present in the snippet footerString

Response​

NameDescriptionTypeAdditional Information
snippetHTML-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.
StringA 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
expirationValidity of the snippetDateTimeCurrently valid for 2 hours