Paytm All in One SDK
Key integration changes for integrating Paytm all in one flow via Hyper SDK:
Prerequisites
All prerequisites and authorization required for Paytm shall be completed by merchant.
Account creation with Paytm
Configure the credentials provided by Paytm on Juspay Dashboard
Dependencies
No gradle dependency required to be added for this flow.
User Experience for Paytm in app flow
The above user experience will be available only in case when the user has Paytm app installed on phone. If not, the user will be automatically redirected to the OTP login page of Paytm.
Step 1 - Customer context creation
Create or Get
Customer on the Juspay Server. It is recommended to make this API call before opening the payment page.
Step 2 - Order creation
Create Order on the Juspay Server.
Step 3 - Check Device specific App/SDK
Check paytm app availability for the current device using isDeviceReady Call. Refer to the code Snippet on the right for details. Please consider the app to be present on the user device if the response is true.
Step 4 - Initiate wallet transaction
Use walletTxn operation to initiate Paytm transaction. Please note to send the below two parameters for the walletTxn operation.
paymentMethod :: PAYTM
sdkPresent :: ANDROID_PAYTM (shall be passed based only if the response obtained in Step 3 is true)
The above user experience will be available only in case when the user has paytm app installed on paytm . If not, the user will be automatically redirected to the OTP login page of Paytm.
The request payload given here is for In-App Flow