Learn how to integrate xPay’s subscription payment flow into your website using xPay’s payment gateway APIs.
How to handle subscriptions?
Initiate Subscription Intent (Merchant Server → xPay Server)
fwdUrl
for initiating the subscription process.
See Create Subscription API for details.Receive Subscription Intent Confirmation (xPay Server → Merchant Server)
subscriptionId
. This identifier is crucial for tracking the status of the subscription.
Forward Intent Data to Merchant Frontend (Merchant Server → Merchant Frontend)
fwdUrl
along with the subscription details to the Merchant Frontend, preparing it to manage user interactions related to the subscription.
Redirect to xPay Subscription Checkout (Merchant Frontend → xPay Client)
fwdUrl
to redirect users to xPay’s checkout page to complete the subscription.Handle a Redirect on the callbackUrl (xPay Client → Merchant Frontend)