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)) {