GooglePayInitParams constructor

  1. @JsonSerializable(explicitToJson: true)
const GooglePayInitParams({
  1. required String merchantName,
  2. required String countryCode,
  3. @Default(false) bool testEnv,
  4. BillingAddressConfig? billingAddressConfig,
  5. @Default(false) bool isEmailRequired,
  6. @Default(true) bool existingPaymentMethodRequired,
})

Implementation

@JsonSerializable(explicitToJson: true)
const factory GooglePayInitParams({
  /// Merchant name
  required String merchantName,

  /// ISO country code of the merchant
  required String countryCode,

  /// Flag to use test environment or live environment.
  @Default(false) bool testEnv,

  /// Configuration regarding collection of billing address,
  BillingAddressConfig? billingAddressConfig,

  /// Flag to indicate wheter Google Pay should collect email of the customer.
  @Default(false) bool isEmailRequired,

  /// When `true` Google Pay is considered ready if the customers's Google Pay
  /// wallet has existing payment methods.
  @Default(true) bool existingPaymentMethodRequired,
}) = _GooglePayInitParams;