drenther / upi_pay

Flutter plugin for UPI (Only in India)
MIT License
58 stars 71 forks source link

I am not getting the list of UPI apps on my Android 12 #66

Open altafkhan8719 opened 2 years ago

altafkhan8719 commented 2 years ago

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

drenther commented 1 year ago

Please provide a repo with minimal code for reproducibility. As I am unable to reproduce this on my side.

Also, if possible try on other devices to pin down if it is a device specific issue.