GooglePayParams constructor
- @JsonSerializable(explicitToJson: true)
const
GooglePayParams(
{ - @Default(false) bool testEnv,
- required String merchantCountryCode,
- required String currencyCode,
- String? merchantName,
- bool? isEmailRequired,
- 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;