Create Intent
This API is the first API to be called when the payment flow begins. Through this API, you inform xPay of the intent of the user to pay with all the requisite info about the user.
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)
Three letter abbreviation of the currency. Refer supported currencies
Details about the customer
The URL we will callback to with the order status once it finishes.
Your identifier of the order
The description of the order, if any
List of payment methods to be enabled for the link. supported payment methods
The customerReferenceId
is used to enable the saved payment method feature. When a new, unique customerReferenceId
is provided, a new customer profile is created. To retrieve and display a customer's previously saved payment methods, use the same customerReferenceId
in subsequent transactions.
⚠️Warning : Ensure the customerReferenceId
is unique for each customer. Using a duplicate ID may result in payment methods being unintentionally shared across different customers, compromising security and privacy
Response
The amount in lowest count unit (e.g., cents for USD)
Three-letter currency code
The currency that the customer paid in
Your identifier for the order
The mode in which the transaction was made (e.g., TEST or LIVE)
Description of the order, if any
Callback URL to notify order status
Timestamp of when the intent was created
Current status of the intent.
Unique identifier of the intent
The URL to redirect the customer to the xPay payment gateway for payment.
Was this page helpful?