GooglePayInitParams class abstract

Config parameters used to intialize google pay.

Available extensions
Annotations
  • @freezed

Constructors

GooglePayInitParams.new({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>
Create a copy of GooglePayInitParams with the given fields replaced by the non-null parameter values.
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

map<TResult extends Object?>(TResult $default(_GooglePayInitParams value)) → TResult

Available on GooglePayInitParams, provided by the GooglePayInitParamsPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_GooglePayInitParams value)?) → TResult?

Available on GooglePayInitParams, provided by the GooglePayInitParamsPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_GooglePayInitParams value)?, {required TResult orElse()}) → TResult

Available on GooglePayInitParams, provided by the GooglePayInitParamsPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(String merchantName, String countryCode, bool testEnv, BillingAddressConfig? billingAddressConfig, bool isEmailRequired, bool existingPaymentMethodRequired, String? label, double? amount)?, {required TResult orElse()}) → TResult

Available on GooglePayInitParams, provided by the GooglePayInitParamsPatterns extension

A variant of when that fallback to an orElse callback.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this GooglePayInitParams to a JSON map.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(String merchantName, String countryCode, bool testEnv, BillingAddressConfig? billingAddressConfig, bool isEmailRequired, bool existingPaymentMethodRequired, String? label, double? amount)) → TResult

Available on GooglePayInitParams, provided by the GooglePayInitParamsPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(String merchantName, String countryCode, bool testEnv, BillingAddressConfig? billingAddressConfig, bool isEmailRequired, bool existingPaymentMethodRequired, String? label, double? amount)?) → TResult?

Available on GooglePayInitParams, provided by the GooglePayInitParamsPatterns extension

A variant of when that fallback to returning null

Operators

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