Fetch Account Details

1. Construct URL as follows:

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:
String checksum = sha256(apiEndPoint + salt) + ### + saltIndex;
  1. Construct the Request as follows:
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){
}