Payments Links
This API can be used to generate payment links programmatically. Payments links are basically standalone webpages where your customer can make a one time payment. These do not need any integrations.
Authorizations
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Body
The amount in lowest count unit. e.g.: For USD 1, amount is 100 representing 100 cents (The minimum amount should be greater than 1 USD)
100
Three letter abbreviation of the currency. Refer supported currencies
"USD"
Details about the customer
Timestamp in epoch milliseconds, indicating the expiration time of the link
32526868154000
Your identifier of the order
"order123"
The description of the order, if any
"Order for 2 items"
The URL we will callback to with the xIntentId once it finishes.
"https://example.com/callback"
The URL to redirect the customer to when they cancel the payment. If not provided, the callbackUrl will be used as fallback.
"https://example.com/cancel"
List of payment methods to be enabled for the link. supported payment methods
["CARD", "GOOGLE_PAY", "APPLE_PAY"]
🔵 Beta Feature - The unique identifier for your storefront. This ID is used to associate the payment link with a specific storefront in your account. When provided, it will replace the default DBA and logo with the corresponding storefront's branding. This feature is currently in beta testing and may be subject to changes.
To enable this feature, please contact hello@xpaycheckout.com
"sf_sK8d3Jq1tZxPjYVhRQW2rf"
Response
The shortened URL generated by the xPay API. This link can be shared with customers for completing payments.
"https://api.xpaycheckout.com/link/pcTrro7D"
A message highlighting unsupported currency and payment method pairs. You may use this information to communicate these limitations to your users and set expectations.
"GBP is not supported on Klarna. The payment will default to USD."
Was this page helpful?