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