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

Razorpay subscriptions in flutter not working #396

Open
hadi7khan opened this issue Aug 8, 2024 · 5 comments
Open

Razorpay subscriptions in flutter not working #396

hadi7khan opened this issue Aug 8, 2024 · 5 comments

Comments

@hadi7khan
Copy link

I am trying to use recursive payments in Flutter using razorpay subscriptions. I have created plans and subscriptions on Razopay dashboard. When i try to subscribe to it in flutter it throws an error that payment failed.

Here's my code: amount = amount * 100; var options = { 'key': key, 'subscription_id': subcriptionId, 'amount': amount, 'name': 'Subscription', 'description': 'Live Payment', 'retry': {'enabled': true, 'max_count': 3}, 'prefill': {'contact': 'number', 'email': '[email protected]'}, 'external': { 'wallets': [ 'paytm', 'phonepe', 'mobikwik', 'freecharge', 'airtelmoney', 'olamoney', 'jiomoney' ], } }; try { razorpay.open(options); } catch (e) { debugPrint('exception : $e'); }

What am I missing? When i use test key it is working fine. With live mode it is not working. Please help

@vivekshindhe
Copy link
Contributor

@hadi7khan Can you share the error message you receive?

@hadi7khan
Copy link
Author

Payment failed error shows on Razorpay. My options payload is correct?

@hadi7khan
Copy link
Author

@vivekshindhe Can you please share how to implement Razorpay subscriptions in flutter? I did everything that the docs say but it's not working.

@Biswajit1729
Copy link

it's not working. Payment failed

@SatyaMirthipati
Copy link

Please check your live key with your backend team. The issue will be resolved

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

4 participants