Closed Dhruv245 closed 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.
yes, I have login in them
Can you tell me the whole code to register a single app
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.
It is only showing loading Nothing is happening
Can you tell me the issue
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.
Paytm is shown in the list
And is also able to handle the request. Are you sure it is not working.
Can you share a screen recording of the problem?
When I log out of paytm, it is not shown in list. But when I am logged in, it is working fine as expected.
I am using the code that you have used in github examples
I am also using the same one.
Can you give a screen recording of the problem you are facing as I am unable to reproduce the issue.
does dual apps create this issue
or it is because the paytm no I am using is not the same as the phone no in my mobile phone
No phone number shouldn't be a problem. I don't know about the dual apps.
I dont know how but Google pay is now working but paytm is not
What do you mean by not working? Is it not shown in the list or is not handling the payment?
Paytm is not showing in the list
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,
);
}
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
@Dhruv245 are you seeing the same thing as mentioned by @j33tmane ?
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