CanAddCardToWalletParams constructor

  1. @JsonSerializable(explicitToJson: true)
const CanAddCardToWalletParams({
  1. String? primaryAccountIdentifier,
  2. required String cardLastFour,
  3. bool? testEnv,
  4. bool? hasPairedAppleWatch,
  5. bool? supportsTapToPay,
})

Implementation

@JsonSerializable(explicitToJson: true)
const factory CanAddCardToWalletParams({
  ///The `primary_account_identifier` value from the issued card. Can be an empty string.
  String? primaryAccountIdentifier,

  /// Last 4 digits of the card number. Required for Android.
  required String cardLastFour,

  /// iOS only. Set this to `true` until shipping through TestFlight || App Store. If false, you must be using live cards, and have the proper iOS entitlement set up. See https://stripe.com/docs/issuing/cards/digital-wallets?platform=react-native#requesting-access-for-ios
  bool? testEnv,

  /// iOS only. Set this to `true` if: your user has an Apple Watch device currently paired, and you want to check that device for the presence of the specified card.
  bool? hasPairedAppleWatch,

  /// Android only, defaults to `true`. Set this to `false` if you'd like to allow users without NFC-enabled devices to add cards to the wallet. NFC is required for paying in stores.
  bool? supportsTapToPay,
}) = _CanAddCardToWalletParams;