Use Cases and Flows
This section describes the different use cases and transaction flows for recurring payments. These flows cover both customer-initiated payments and merchant-initiated payments while handling scenarios such as first-time payments, returning users, and subscription billing.
Key Scenarios
First-Time Payment & Saving a Payment Method: A new shopper completes a payment and opts to save their details.
Merchant-Initiated Recurring Payment: The merchant charges a saved payment method automatically for subscriptions.
Shopper Removes a Saved Payment Method: A shopper removes a stored payment method from their account.
First-Time Payment & Saving a Payment Method
Description
A new shopper (customer) completes a payment and given the option to save their payment method for future transactions.
Flow Details
The merchant initiates a payment request via
/v2/Payment/init, passing shopper info, transaction details, andsavePaymentMethod: trueand respective parameters:offSessionTypetype of future off session payment (Unscheduled, Subscriptions, Installments) for this account binding
The shopper is redirected to the hosted payment page
The shopper enters payment details and selects to save the payment method
The payment is processed, undergoing authentication and fraud checks (e.g., SCA)
Upon success:
A shopper profile is created (if it doesn't exist)
A payment method token is generated and stored
The merchant receives a notification confirming the saved method
The merchant receives the payment success response along with the tokenized payment method
You can refer to the Hosted Payment Page Integration: Initiate a Payment Request and Saving Card Details references for more details on each APIs.
Merchant-Initiated Recurring Payment
Description
The merchant charges a shopper automatically without their presence (off-session), using a previously saved payment method.
Flow Details
The merchant initiates a charge via
/v1/payment/token, passing:paymentMethodIdsaved payment method of the particular partnerShopperIdoffSessionTypetype of offSession binding the user was authorised in First-time payment when saving the payment method with consent
The merchant will receives acknowledgement response with resultCode
431The system processes the payment using the stored payment method.
The transaction undergoes standard authentication, fraud checks, and processing.
The merchant receives a payment success notification callback.
Optionally, merchant can query the payment result with v2.0 Inquiry API
You can refer to the Hosted Payment Page Integration: Initiate a Payment Request and Saving Card Details references for more details on each APIs.
Last updated
Was this helpful?