Upi payment is not working in android app

Viewed 277

I am using implementation 'com.shreyaspatil:EasyUpiPayment:2.2' for upi payment. But gpay fails the trasaction saying the transaction might be risky . PhonPe says transaction failed due to technical errors. I dont understand what is the problem , here is the code

final EasyUpiPayment easyUpiPayment = new EasyUpiPayment.Builder()
                    .with(this)
                    .setPayeeVpa("xxxxxxxxxxxxxxx")
                    .setPayeeName("xxx xxxx  xxxx")
                    .setTransactionId(transactionId)
                    .setTransactionRefId("Ref" + transactionId)
                    .setDescription(description)
                    .setAmount(amount)
                    .build();

            easyUpiPayment.startPayment();
1 Answers

use this updated code in your android app

in update code use your upiid in pn and pa both parameter. don't use your name in pn parameter, use upi in pn parameter also.

Rahul Gunani

Related