1. Construct URL as follows:
String apiEndPoint = "/v3/account/" + <merchantId> + "/" + <merchantUserId> + "/summary";
- Select one of the salts shared with you and note it's index. Construct the Checksum as follows:
String checksum = sha256(apiEndPoint + salt) + ### + saltIndex;
- 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){
}