Authorizations
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Body
Create Setup Method
Three letter abbreviation of the currency. Refer supported currencies
"USD"
Your unique identifier for the customer
"cus_Tfd3Jq1tZxPjYVhRQW2r3"
List of payment methods to be enabled for setup. supported payment methods
š” If a selected payment method is unavailable, the system will automatically fallback to card payments to ensure a smooth checkout experience.
["CARD", "GOOGLE_PAY", "APPLE_PAY"]
The unique identifier for your storefront
"sf_sK8d3Jq1tZxPjYVhRQW2rf"
The URL we will callback to once the setup is complete
"https://example.com/callback"
A collection of key-value pairs that can be attached to an object for storing additional structured information
{
"orderId": "12345",
"customerNote": "Setup for recurring payments"
}
Flag to indicate whether phone number is required from the customer during checkout. By default, this is false.
false
Response
Setup Method created successfully