razorpay / razorpay-flutter

Razorpay Flutter Plugin
MIT License
107 stars 147 forks source link

Exception has occurred. _CastError (type 'String' is not a subtype of type 'Map<dynamic, dynamic>?' in type cast) #314

Open vikash23333 opened 1 year ago

vikash23333 commented 1 year ago

option:- { "key": "<--",// I ma giving the wrong key:- Ex:- '<+Original_Key' "amount": "10000.0", "name": "Vikash Kumar", "description": "Testing", "timeout": 300, "prefill": { "contact": "7050634314", "email": "vikash23333@gmail.com" } } Then I am getting the Error on Razorpay Class:- _CODE_PAYMENT_ERROR=1, inside PaymentFailureResponse Class I am getting the error on responseBody Field. It was throwing the type 'String' is not a subtype of type 'Map<dynamic, dynamic>?' in type cast And app will Stuck in debug mode.

Is it a valid error ya, Do I have to handle it form My side Somehow?

Siddharth2212 commented 10 months ago

Facing same issue . Any solution?