Get Payment options API

Server Side

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

App Side

  • Collect payment options API response and display payment option modes on the user interface.