Skip to content

Commit

Permalink
Merge branch 'fixes/1670'
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasbark committed Mar 7, 2024
2 parents 0ce4236 + 344b930 commit 4e29899
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
5 changes: 5 additions & 0 deletions packages/stripe/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 10.1.1

**Fixes**
- #1670 Fix issue when not providing preferredNetworks on `CardField` or `CardForm`

## 10.1.0

**Features**
Expand Down
5 changes: 3 additions & 2 deletions packages/stripe/lib/src/widgets/card_field.dart
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,9 @@ class _MethodChannelCardFieldState extends State<_MethodChannelCardField>
'placeholder': placeholder.toJson(),
'postalCodeEnabled': widget.enablePostalCode,
'countryCode': widget.countryCode,
'preferredNetworks':
widget.preferredNetworks?.map((e) => e.brandValue).toList(),
if (widget.preferredNetworks != null)
'preferredNetworks':
widget.preferredNetworks?.map((e) => e.brandValue).toList(),
'dangerouslyGetFullCardDetails': widget.dangerouslyGetFullCardDetails,
if (widget.dangerouslyUpdateFullCardDetails &&
controller.initalDetails != null)
Expand Down
5 changes: 3 additions & 2 deletions packages/stripe/lib/src/widgets/card_form_field.dart
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,9 @@ class _MethodChannelCardFormFieldState
controller._initalDetails != null)
'cardDetails': controller._initalDetails?.toJson(),
'autofocus': widget.autofocus,
'preferredNetworks':
widget.preferredNetworks?.map((e) => e.brandValue).toList(),
if (widget.preferredNetworks != null)
'preferredNetworks':
widget.preferredNetworks?.map((e) => e.brandValue).toList(),
'disabled': widget.disabled,
'defaultValues': {
'countryCode': widget.countryCode,
Expand Down
2 changes: 1 addition & 1 deletion packages/stripe_android/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: stripe_android
description: Stripe platform implementation for Android
version: 10.1.0
version: 10.1.1
repository: https://github.com/flutter-stripe/flutter_stripe
homepage: https://pub.dev/packages/flutter_stripe

Expand Down

0 comments on commit 4e29899

Please sign in to comment.