PhonePe QCLite
Prerequisites
All prerequisites and authorization required for PhonePe shall be completed by merchant.
Account creation with PhonePe
Configure the credentials provided by Phonepe on Juspay Dashboard
Dependencies
No gradle dependency required to be added for this flow.
User Experience for Phonepe QC Lite flow
The above user experience will be available only in case when the user has Phonepe app installed on phone and also registered on Phonepe. If not, the user will be automatically redirected to the OTP login page of Phonepe.
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 Phonepe 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 Phonepe transaction. Please note to send the below two parameters for the walletTxn operation.
paymentMethod :: PHONEPE
sdkPresent :: ANDROID_PHONEPE (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 Phonepe app installed on phone and also registered on Phonepe. If not, the user will be automatically redirected to the OTP login page of Phonepe.
The request payload given here is for In-App Flow

