GooglePayParams constructor

  1. @JsonSerializable(explicitToJson: true)
const GooglePayParams({
  1. @Default(false) bool testEnv,
  2. required String merchantCountryCode,
  3. required String currencyCode,
  4. String? merchantName,
  5. bool? isEmailRequired,
  6. bool? allowCreditCards,
})

Implementation

@JsonSerializable(explicitToJson: true)
const factory GooglePayParams({
/**
 * Set to true to run in a test environment with relaxed application / merchant requirements. This environment is suggested for early development and for easily testing SDK.
    - Does not require the application to be uploaded to the Google Play Store.
    - Does not require a Google Pay Developer Profile.
    - It uses production data, but at the end of the transaction you will receive a fake and non chargeable payment credential.
    - The user will see a warning message that the app is not recognized/verified.
 */
  @Default(false) bool testEnv,

  /// ISO 3166-1 alpha-2 country code where the transaction is processed.
  required String merchantCountryCode,

  /// ISO 4217 alphabetic currency code.
  required String currencyCode,

  /// Merchant name, displayed in the Google Pay sheet.
  String? merchantName,

  /// Set to true to request an email address.
  ///
  /// Defaults to false.
  bool? isEmailRequired,

  /// Set to false if you don't support credit cards.
  ///
  /// Defaults to true.
  bool? allowCreditCards,
}) = _GooglePayParams;