Skip to content

Commit

Permalink
Fix/deferred payment methods (#1839)
Browse files Browse the repository at this point in the history
* Fixes #1834

* Fixes #1837

* Rollback Stripe Sdk Changes, Alternative solution for #1834

* Rollback Change on Stripe Ios Sdk

---------

Co-authored-by: Giacomo Policicchio <[email protected]>
Co-authored-by: Rémon <[email protected]>
  • Loading branch information
3 people authored Jul 17, 2024
1 parent e940a9c commit c6f4100
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ class _PaymentSheetScreenState extends State<PaymentSheetDefferedScreen> {
await Stripe.instance.initPaymentSheet(
paymentSheetParameters: SetupPaymentSheetParameters(
// Main params
returnURL: 'flutterstripe://stripe-redirect"',
merchantDisplayName: 'Flutter Stripe Store Demo',
intentConfiguration: IntentConfiguration(
mode: IntentMode(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class IntentConfiguration with _$IntentConfiguration {

@freezed
class IntentMode with _$IntentMode {
@JsonSerializable(explicitToJson: true)
@JsonSerializable(explicitToJson: true,includeIfNull: false)
const factory IntentMode({
required String currencyCode,
required int amount,
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c6f4100

Please sign in to comment.