Skip to content

Commit

Permalink
fix: #1409 send usesDeprecatedTokenFlow to stripe platform
Browse files Browse the repository at this point in the history
  • Loading branch information
Remon committed Sep 12, 2023
1 parent 644cea0 commit c4c3e49
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 @@ -507,13 +507,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 c4c3e49

Please sign in to comment.