Documentation Index
Fetch the complete documentation index at: https://docs.xpaycheckout.com/llms.txt
Use this file to discover all available pages before exploring further.
Create Customer (Merchant Server → xPay Server)
customerId in the response.
See create-customer API for details.customerId is required for creating a setup method and charging the payment method later.Create Setup Method (Merchant Server → xPay Server)
- Hosted Flow — Make a create-setup-method POST request. xPay handles the payment form UI. See create-setup-method API for details.
- Server Side Flow — Make a create-s2s-setup-method POST request with the customer’s card details directly from your server. See create-s2s-setup-method API for details.
setupMethodId and fwdUrl in the response.Receive Setup Method Confirmation (xPay Server → Merchant Server)
setupMethodId, which is used to track the setup status throughout the process.
Forward Setup Method data to Merchant Frontend (Merchant Server → Merchant Frontend)
fwdUrl to the Merchant Frontend, enabling it to manage user interactions related to the payment method setup.Redirect to xPay Checkout (Merchant Frontend → xPay Client)
fwdUrl.Handle Setup Method Webhook (xPay Server → Merchant Server)
- Configure your webhook endpoint to receive the
setup_method.successevent. - When the setup is successful, you’ll receive a webhook with the
pmId(Payment Method ID). - Store this
pmIdsecurely in your database for future use.
Charge Tokenized Payment Method (Merchant Server → xPay Server)
pmId, you can charge the customer’s payment method using the charge-tokenised-pm POST request.
See charge-tokenised-pm API for details.Monitor Setup Method Status (Optional)
Track Payment Method Token Status (Optional)
LIVE: The token is active and can be used for transactionsDELETED: The token has been deleted and cannot be used for transactions
By following this process, you can securely store customer payment methods and charge them for future transactions. The setup method flow provides a seamless experience for customers while maintaining security and compliance standards.