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