razorpay / razorpay-flutter

Razorpay Flutter Plugin
MIT License
106 stars 147 forks source link

Razorpay subscriptions in flutter not working #396

Open hadi7khan opened 1 month ago

hadi7khan commented 1 month ago

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': 'test@email.com'}, '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 commented 1 month ago

@hadi7khan Can you share the error message you receive?

hadi7khan commented 1 month ago

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

hadi7khan commented 1 month ago

@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 commented 3 weeks ago

it's not working. Payment failed