Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
hexch authored Mar 10, 2024
2 parents 2b9074d + 4c0a2c2 commit c212057
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/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_stripe
description: Flutter library for Stripe. Supports PaymentSheets, Apple & Google Pay, SCA, PSD2 and much more.
version: 10.1.0
version: 10.1.1
homepage: https://github.com/flutter-stripe/flutter_stripe
repository: https://github.com/flutter-stripe/flutter_stripe

Expand Down

0 comments on commit c212057

Please sign in to comment.