- Save the below assigned apiEndPoint value at your server for payment options.
String apiEndPoint = "/v3/merchant/payment/options";
- Call Get Payment Options API along with the deviceContext. Refer this link for more details.
"deviceContext": {
"phonePeUserStatus": "VALID",
"phonePeVersionCode": 400922 // -1 if unknown
}
- Construct the checksum at your server as follows:
String checksum = sha256(base64Body + apiEndPoint + salt) + ### + saltIndex;
- Collect payment options API response and display payment option modes on the user interface.