react-native-upi icon indicating copy to clipboard operation
react-native-upi copied to clipboard

No apps can perform this action.

Open koreahn opened this issue 2 years ago • 2 comments

Hello. I am developing an app with react-native-upi. I am testing multi real devices and emulator. Some devices are working fine. However, on some devices, the call to "RNUpiPayment.initializePayment" fails to list the installed UPI apps and displays the message below.

  • No apps can perform this action.
  • No application to perform this action

I have paytm, phonepe, google pay app installed on my test device. I don't think it's an android version issue, some devices work with version 13 and some don't. The difference is that the devices that don't list the UPI app only have the UPI app installed, not logged in.

If you know anything, please help me. Thanks. Below is the source code.

const init = () => {
  try {
    RNUpiPayment.initializePayment(
      {
        vpa: 'upi_id@ybl',
        payeeName: 'my payee name',
        amount: '1',
        transactionRef: 'aasf-332-aoei-fn',
        transactionNote: 'for food',
      },
      successCallback,
      failureCallback,
    );
  } catch (e) {
    console.error('Error:', e);
  }
};

function successCallback(data) {
  // do whatever with the data
  console.log('success', data);
}

function failureCallback(data) {
  // do whatever with the data
  console.log('error', data);
}

koreahn avatar Sep 07 '23 13:09 koreahn

in my device working fine with paytm,... other apps not working like google pay

getsettalk avatar Sep 09 '23 03:09 getsettalk

I am also facing same error.

Dhaval1905 avatar Oct 08 '23 03:10 Dhaval1905