Skip to content

Commit

Permalink
fix: #1409 send usesDeprecatedTokenFlow to stripe platform (#1410)
Browse files Browse the repository at this point in the history
Co-authored-by: Remon <>
  • Loading branch information
remonh87 authored Sep 25, 2023
1 parent ff42f33 commit 1a56658
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/stripe/lib/src/stripe.dart
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,10 @@ class Stripe {
}) async {
try {
await _awaitForSettings();
return await _platform.platformPayCreatePaymentMethod(params: params);
return await _platform.platformPayCreatePaymentMethod(
params: params,
usesDeprecatedTokenFlow: usesDeprecatedTokenFlow,
);
} on StripeError {
rethrow;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -508,13 +508,15 @@ class MethodChannelStripe extends StripePlatform {
data = {
'applePay': {
...params.applePayParams.toJson(),
'usesDeprecatedTokenFlow': usesDeprecatedTokenFlow,
},
};
} else if (params is PlatformPayPaymentMethodParamsGooglePay) {
data = {
'googlePay': {
...params.googlePayParams.toJson(),
...params.googlePayPaymentMethodParams.toJson(),
'usesDeprecatedTokenFlow': usesDeprecatedTokenFlow,
},
};
}
Expand Down

0 comments on commit 1a56658

Please sign in to comment.