GooglePayInitParams class

Config parameters used to intialize google pay.

Annotations
  • @freezed

Constructors

GooglePayInitParams({required String merchantName, required String countryCode, @Default(false) bool testEnv, BillingAddressConfig? billingAddressConfig, @Default(false) bool isEmailRequired, @Default(true) bool existingPaymentMethodRequired, String? label, double? amount})
const
factory
GooglePayInitParams.fromJson(Map<String, dynamic> json)
factory

Properties

amount double?
An optional amount to display for setup intents. Google Pay may or may not display this amount depending on its own internal logic. Defaults to 0 if none is provided.
no setterinherited
billingAddressConfig BillingAddressConfig?
Configuration regarding collection of billing address,
no setterinherited
copyWith → $GooglePayInitParamsCopyWith<GooglePayInitParams>
no setterinherited
countryCode String
ISO country code of the merchant
no setterinherited
existingPaymentMethodRequired bool
When true Google Pay is considered ready if the customers's Google Pay wallet has existing payment methods.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isEmailRequired bool
Flag to indicate wheter Google Pay should collect email of the customer.
no setterinherited
label String?
An optional label to display with the amount. Google Pay may or may not display this label depending on its own internal logic. Defaults to a generic label if none is provided.
no setterinherited
merchantName String
Merchant name
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
testEnv bool
Flag to use test environment or live environment.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited