Please provide all the information requested. Issues that do not follow this format are likely to stall.
Description
While doing payment with Debit Card and if card is blocked for transaction, the SDK is throwing exception internally
and instead of giving Success/Failure callback payment page is just getting closed automatically
Enter valid debit card details(card should be blocked for online payment)
Enter OTP received on next page
Submit
Razorapy page will be closed automatically without giving Success/Failure calback
Expected Results
If debit card used for payment is blocked for transaction then it should trigger SDKs error callback so the user can be redirected to Failure Page
Snack, code example, screenshot, or link to a repository:
ERROR LOG
E/flutter ( 8295): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: type 'String' is not a subtype of type 'Map<dynamic, dynamic>?' in type cast
E/flutter ( 8295): #0 PaymentFailureResponse.fromMap (package:razorpay_flutter/razorpay_flutter.dart:145:44)
E/flutter ( 8295): #1 Razorpay._handleResult (package:razorpay_flutter/razorpay_flutter.dart:66:42)
E/flutter ( 8295): #2 Razorpay.open (package:razorpay_flutter/razorpay_flutter.dart:48:5)
E/flutter ( 8295):
Please provide all the information requested. Issues that do not follow this format are likely to stall.
Description
While doing payment with Debit Card and if card is blocked for transaction, the SDK is throwing exception internally and instead of giving Success/Failure callback payment page is just getting closed automatically
Flutter Version :
Flutter 3.13.8 • channel stable • https://github.com/flutter/flutter.git Framework • revision 6c4930c4ac (8 months ago) • 2023-10-18 10:57:55 -0500 Engine • revision 767d8c75e8
Steps To Reproduce
Expected Results
If debit card used for payment is blocked for transaction then it should trigger SDKs error callback so the user can be redirected to Failure Page
Snack, code example, screenshot, or link to a repository:
ERROR LOG
E/flutter ( 8295): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: type 'String' is not a subtype of type 'Map<dynamic, dynamic>?' in type cast E/flutter ( 8295): #0 PaymentFailureResponse.fromMap (package:razorpay_flutter/razorpay_flutter.dart:145:44) E/flutter ( 8295): #1 Razorpay._handleResult (package:razorpay_flutter/razorpay_flutter.dart:66:42) E/flutter ( 8295): #2 Razorpay.open (package:razorpay_flutter/razorpay_flutter.dart:48:5) E/flutter ( 8295):