Fetch Account Details

1. Construct URL as follows:

Java
String apiEndPoint = "/v3/account/" + <merchantId> + "/" + <merchantUserId> + "/summary";
  1. Select one of the salts shared with you and note it’s index. Construct the Checksum as follows:
Java
String checksum = sha256(apiEndPoint + salt) + ### + saltIndex;
  1. Construct the Request as follows:
Java
try { PhonePe.fetchPhonePeUserDetails(apiUrl, checksum, new DataListener<UserDetails>() { @Override public void onSuccess(UserDetails userDetails) { /* Process the info */ } @Override public void onFailure(ErrorInfo error) { } }); } catch(PhonePeInitException e){ }