Skip to content

Commit

Permalink
fix: responseBody not initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
OutdatedGuy committed Mar 28, 2024
1 parent 34e0345 commit 29f4896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/razorpay_flutter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ class PaymentFailureResponse {
static PaymentFailureResponse fromMap(Map<dynamic, dynamic> map) {
var code = map["code"] as int?;
var message = map["message"] as String?;
var responseBody;
var responseBody = map["responseBody"];

if (responseBody is Map<dynamic, dynamic>) {
return PaymentFailureResponse(code, message, responseBody);
Expand Down

0 comments on commit 29f4896

Please sign in to comment.