Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No apps can perform this action. #51

Open
koreahn opened this issue Sep 7, 2023 · 2 comments
Open

No apps can perform this action. #51

koreahn opened this issue Sep 7, 2023 · 2 comments

Comments

@koreahn
Copy link

koreahn commented Sep 7, 2023

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);
}
@getsettalk
Copy link

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

@Dhaval1905
Copy link

I am also facing same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants