Checkout

Save selected payment method for checkout

Save selected payment method for checkout

post/checkout-payment-methods

Request

Headers

X-STOREFRONT-KEYstring required

Storefront API Key for authentication. Required for all shop/storefront API requests.

X-Localestring
Example:en

Locale code for localized data (e.g. "en", "fr", "ar"). Defaults to channel's default locale.

X-Channelstring
Example:default

Channel code (e.g. "default"). Defaults to the current channel.

X-Currencystring
Example:USD

Currency code (e.g. "USD", "EUR", "INR"). Defaults to channel's base currency.

Request body

paymentMethodstring required
paymentSuccessUrlstring
paymentFailureUrlstring
paymentCancelUrlstring

Example request

{
  "paymentMethod": "moneytransfer",
  "paymentSuccessUrl": "https://myapp.com/payment/success",
  "paymentFailureUrl": "https://myapp.com/payment/failure",
  "paymentCancelUrl": "https://myapp.com/payment/cancel"
}

Response

Payment method saved successfully.

Changes

No recorded changes to this operation across all 13 revisions of this API.