upi_pay
upi_pay copied to clipboard
I am not getting the list of UPI apps on my Android 12
Describe the bug
I am not getting the list of UPI apps on my Android 12 version if passed as UpiApplication as Gpay, which is installed on my mobile. I am getting activity_unavailable as raw response
To Reproduce
Steps to reproduce the behaviour:
final a = await UpiPay.initiateTransaction( amount: "20", app: UpiApplication( androidPackageName: 'com.google.android.apps.nbu.paisa.user', iosBundleId: 'com.google.paisa', appName: 'Google Pay', discoveryCustomScheme: 'gpay', ), receiverName: 'Sharad', receiverUpiAddress: _upiAddressController.text, transactionRef: transactionRef, transactionNote: 'UPI Payment',
);
print(a);
Getting below response:
UpiTransactionResponse { txnId: null, responseCode: null, approvalRefNo: null, status: UpiTransactionStatus.failure, txnRef: null, rawResponse: activity_unavailable }
Environmental Details
- OS: [Android 12]
- Device: [Realme GTEdition]
- UPI Applications in the device: [ GPay, Paytm]