razorpay / razorpay-flutter

Razorpay Flutter Plugin
MIT License
106 stars 144 forks source link

Fixed data typecasting issue in PaymentFailureResponse/fromMap. Resolves Issue #335 #350

Closed LogicKahanHai closed 4 months ago

LogicKahanHai commented 8 months ago

335 type 'String' is not a subtype of type 'Map<dynamic, dynamic>?' in type cast

The issue arose because map[responseBody] had a runtimeType of String and it was being casted to a Map.

The fix: using jsonDecode() method of dart:convert I converted the string to a Map

LogicKahanHai commented 7 months ago

Hello Developers! Please tell me if there something wrong with my submission. I am new to contributing to open source projects.