I am facing a problem with Google pay integration(in-app payment) in android app. When I make a request to transact I am getting the error "You have exceeded the maximum transaction amount set by your bank" even though that is my first transaction. And when I try to send amount directly from Google pay it works.
This is the Google pay's in-app payment resource.
Here is code
Uri uri = new Uri.Builder()
.scheme("upi")
.authority("pay")
.appendQueryParameter("pa", upiId) //receiver's upiId
.appendQueryParameter("pn", name) //receiver's name
.appendQueryParameter("tn", transactionNote) // reason for transaction
.appendQueryParameter("am", amount) // amount
.appendQueryParameter("cu", "INR")
.build();
// Intent to call GPay app
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(uri);
intent.setPackage(GOOGLE_PAY_PACKAGE_NAME);
startActivityForResult(intent, GOOGLE_PAY_REQUEST_CODE);
I have gone through quite a number of resources online but didn't find any solution. Any help or suggestions would be greatly helpful ?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…