validateUser
This methods accepts a mobile number and then compares it with PhonePe app used on the same device. It returns true if both number matches.
try {
String phoneNumber = "your mobile number";
PhonePe.setFlowId("any unique id");
PhonePe.validateUser(phoneNumber, phonePeUserStatus -> {
// check user status from SDK : it can be VALID/ INVALID
});
} catch (PhonePeInitException e) {
e.printStackTrace();
}
Updated 4 months ago