From 943d1d74b0e530dc144cb55c8414d03d448c66e0 Mon Sep 17 00:00:00 2001 From: Giacomo Policicchio Date: Wed, 10 Jul 2024 00:09:21 +0200 Subject: [PATCH] Fixes #1837 --- .../screens/payment_sheet/payment_sheet_deffered_screen.dart | 1 + .../src/main/kotlin/com/facebook/react/bridge/ReadableMap.java | 2 ++ 2 files changed, 3 insertions(+) diff --git a/example/lib/screens/payment_sheet/payment_sheet_deffered_screen.dart b/example/lib/screens/payment_sheet/payment_sheet_deffered_screen.dart index dfe823965..7425c8ab3 100644 --- a/example/lib/screens/payment_sheet/payment_sheet_deffered_screen.dart +++ b/example/lib/screens/payment_sheet/payment_sheet_deffered_screen.dart @@ -91,6 +91,7 @@ class _PaymentSheetScreenState extends State { await Stripe.instance.initPaymentSheet( paymentSheetParameters: SetupPaymentSheetParameters( // Main params + returnURL: 'flutterstripe://stripe-redirect"', merchantDisplayName: 'Flutter Stripe Store Demo', intentConfiguration: IntentConfiguration( mode: IntentMode( diff --git a/packages/stripe_android/android/src/main/kotlin/com/facebook/react/bridge/ReadableMap.java b/packages/stripe_android/android/src/main/kotlin/com/facebook/react/bridge/ReadableMap.java index 9e76d1a9d..789089824 100644 --- a/packages/stripe_android/android/src/main/kotlin/com/facebook/react/bridge/ReadableMap.java +++ b/packages/stripe_android/android/src/main/kotlin/com/facebook/react/bridge/ReadableMap.java @@ -85,6 +85,8 @@ public ReadableType getType(String key) { return ReadableType.Boolean; } else if (value instanceof Iterable) { return ReadableType.Array; + } else if (value instanceof JSONArray) { + return ReadableType.Array; } else if (value instanceof Number) { return ReadableType.Number; } else if (value instanceof Map || (value instanceof JSONObject)) {