razorpay / razorpay-flutter

Razorpay Flutter Plugin
MIT License
107 stars 150 forks source link

Razorpay subscriptions in flutter not working #396

Open hadi7khan opened 3 months ago

hadi7khan commented 3 months 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 3 months ago

@hadi7khan Can you share the error message you receive?

hadi7khan commented 3 months ago

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

hadi7khan commented 3 months 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 months ago

it's not working. Payment failed

SatyaMirthipati commented 1 month ago

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