azhar1038 / UPI-Plugin-Flutter

Flutter Plugin to do UPI transaction using different apps like PhonePe, Google Pay, PayTM etc.
MIT License
53 stars 38 forks source link

It is not able to detect apps like paytm, airtel pay etc #10

Closed Dhruv245 closed 4 years ago

Dhruv245 commented 4 years ago

The plugin is not able to auto detect apps like paytm and airtel pay . But is able to detect apps like imobile, sharit, makemytrip, bhmi

Dhruv245 commented 4 years ago

WhatsApp Image 2020-05-29 at 9 33 10 PM

azhar1038 commented 4 years ago

Are you sure the apps that are not shown are ready to accept payment request. I mean are you logged in to those apps and are able to use it to make payments?

If yes, can you try using predefined package name like UpiApp.PayTM and comment what happens.

Dhruv245 commented 4 years ago

yes, I have login in them

Dhruv245 commented 4 years ago

Can you tell me the whole code to register a single app

azhar1038 commented 4 years ago

When calling startTransaction provide UpiApp.PayTM in app parameter.

Future<UpiResponse> initiateTransaction(String app) async {
    return _upiIndia.startTransaction(
      app: UpiApp.PayTM,
      receiverUpiId: '9078600498@ybl',
      receiverName: 'Md Azharuddin',
      transactionRefId: 'TestingUpiIndiaPlugin',
      transactionNote: 'Not actual. Just an example.',
      amount: 1.00,
    );
  }

And comment what happens.

Dhruv245 commented 4 years ago

It is only showing loading Nothing is happening

Dhruv245 commented 4 years ago

Can you tell me the issue

azhar1038 commented 4 years ago

Most probably PayTM is unable to process the request. I am looking into it. In the mean time you can also study the source code to look what may be causing this problem.

azhar1038 commented 4 years ago

Paytm is shown in the list Screenshot_2020-05-30-12-46-59-385_com az upi_india_example

azhar1038 commented 4 years ago

And is also able to handle the request. Are you sure it is not working. Screenshot_2020-05-30-12-49-29-674_net one97 paytm

Can you share a screen recording of the problem?

azhar1038 commented 4 years ago

When I log out of paytm, it is not shown in list. But when I am logged in, it is working fine as expected.

Dhruv245 commented 4 years ago

I am using the code that you have used in github examples

azhar1038 commented 4 years ago

I am also using the same one.

azhar1038 commented 4 years ago

Can you give a screen recording of the problem you are facing as I am unable to reproduce the issue.

Dhruv245 commented 4 years ago

does dual apps create this issue

Dhruv245 commented 4 years ago

or it is because the paytm no I am using is not the same as the phone no in my mobile phone

azhar1038 commented 4 years ago

No phone number shouldn't be a problem. I don't know about the dual apps.

Dhruv245 commented 4 years ago

I dont know how but Google pay is now working but paytm is not

azhar1038 commented 4 years ago

What do you mean by not working? Is it not shown in the list or is not handling the payment?

Dhruv245 commented 4 years ago

Paytm is not showing in the list

azhar1038 commented 4 years ago

See the list is returned by the package manager itself. All I am doing is passing the data from android platform to flutter part.

What happens when you directly invoke PayTM using:

Future<UpiResponse> initiateTransaction(String app) async {
    return _upiIndia.startTransaction(
      app: UpiApp.PayTM,
      receiverUpiId: '9078600498@ybl',
      receiverName: 'Md Azharuddin',
      transactionRefId: 'TestingUpiIndiaPlugin',
      transactionNote: 'Not actual. Just an example.',
      amount: 1.00,
    );
  }
j33tmane commented 4 years ago

In my case it was sowhing shareit in list (Listed 4 apps only) I uninstalled shareit app then next time Paytm is listed(its completely random listing but still ) i would suggest try uninstalling any one app listed in your getAllUpiApps call. Check this issue #12

azhar1038 commented 4 years ago

@Dhruv245 are you seeing the same thing as mentioned by @j33tmane ?