IsGooglePaySupportedParams constructor

  1. @JsonSerializable(explicitToJson: true)
const IsGooglePaySupportedParams({
  1. @Default(false) bool testEnv,
  2. @Default(false) bool existingPaymentMethodRequired,
  3. @Default(true) bool supportsTapToPay,
})

Implementation

@JsonSerializable(explicitToJson: true)
const factory IsGooglePaySupportedParams({
  /// Flag to use test environment or live environment.
  ///
  /// Defaults to `false`.
  @Default(false) bool testEnv,

  /// When set to true Google pay is only considered ready in case the
  /// customers google Pay wallet has an existing payment method configured.
  ///
  /// Defaults to `false`.
  @Default(false) bool existingPaymentMethodRequired,

  // When set to true it allow users without NFC-enabled devices to add cards to the wallet.
  //
  //NFC is required for paying in stores. Defaults to `true`. Set this to `false`
  @Default(true) bool supportsTapToPay,
}) = _IsGooglePaySupportedParams;