Skip to content

Commit

Permalink
fix #1753 make sure that it is clear that enablepostal code only work…
Browse files Browse the repository at this point in the history
…s for android
  • Loading branch information
Remon committed Jun 17, 2024
1 parent 65275e2 commit 9f79879
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/stripe/lib/src/widgets/card_form_field.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ class CardFormField extends StatefulWidget {
/// Defaults is `true`. If your configuration in Stripe requires a postalcode
/// check as defined in https://stripe.com/docs/radar/rules#traditional-bank-checks
/// make sure this one is set to `true`.
///
/// This is only supported on android
final bool enablePostalCode;

/// Android only: Controls the postal code entry shown (when `enablePostalCode` is set to true).
Expand Down Expand Up @@ -217,7 +219,7 @@ class _MethodChannelCardFormField extends StatefulWidget {
Key? key,
this.onFocus,
this.style,
this.enablePostalCode = false,
this.enablePostalCode = true,
double? width,
double? height,
BoxConstraints? constraints,
Expand Down

0 comments on commit 9f79879

Please sign in to comment.