isUPIAccountRegistered

This method tells whether the PhonePe app supports UPI Pay intent or not. If it returns false, then don’t show PhonePe app for UPI payments on the Merchant’s Checkout page.

try {
    PhonePe.setFlowId("any unique id");
    PhonePe.isUPIAccountRegistered( new ShowPhonePeCallback() {
        @Override
        public void onResponse(boolean show) {
            // make decision based on show
        }
    });
} catch (PhonePeInitException e) {
    e.printStackTrace();
}