After login into the Paytm account via the AI Router checkout page, users can choose Wallet as a payment option to complete their transaction. The wallet journey could be of 2 types depending on the available wallet balance in the user's account:
Sufficient Balance:
- If the transaction amount is less than or equal to the available wallet balance, the user can click on the Pay button to proceed with the payment.
- Merchant's app / browser calls the Pay API of AI Router with paymentMode as WALLET and paymentFlow as PAY in the API request body.
- In the case of Paytm payment instruments, AI Router by default selects Paytm PG as a valid gateway to route the transaction.
- Paytm PG processes the transaction and returns the status to the AI Router, which then returns the status to the merchant's app / browser.
- Merchants can call the Transaction Status API to verify the payment status. AI Router will return the final payment status back to the merchant.
- Merchant then displays this status to the user on its app / browser.
Insufficient Wallet Balance:
- User can still complete their payment even if they have insufficient balance in their wallet. In this case, AI Router will display all the available payment options through which users can add the remaining transaction amount to their wallet and make the transaction. This flow of AI Router is called Add and Pay flow.
- Users can then select any other payment method such as new cards, saved cards, netbanking, etc, to add the remaining amount and make the payment. (To know more in-depth on how the payment journey looks like for each of these payment methods please click here:
- Once the user selects a payment option and clicks on Pay, AI Router's Payment API is called to process the transaction. In the case of Add and Pay, a merchant needs to pass paymentMode as WALLET and paymentFlow as ADDNPAY.
Note: Here, internally the amount is first deducted from Add and Pay source and is added to the user's wallet and then the final transaction is made with wallet as a payment instrument. However, for the user, it would appear as a seamless wallet journey with direct payment after clicking on Pay.
- Paytm PG processes the transaction and returns the status to AI Router, which then sends the status back to the merchant's app / browser.
- Merchants can call the Transaction Status API to verify the payment status. AI Router will return the final payment status back to the merchant.
- Merchant then displays this status to the user on its app / browser.