DigitalWalletPaymentParameters class
Parameters used to create a digital wallet payment method
Constructors
-
DigitalWalletPaymentParameters.new({required double amount, GooglePayCheckoutStatus googlePayCheckoutStatus = GooglePayCheckoutStatus.finalImmediatePurchase, String? totalPriceLabel, List<
DigitalWalletLineItem> ? lineItems, bool validateLineItems = true}) - Create digital wallet payment parameters
Properties
- amount → double
-
The amount to be charged
final
- googlePayCheckoutStatus → GooglePayCheckoutStatus
-
The status for the transaction. (Android only)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
lineItems
→ List<
DigitalWalletLineItem> ? -
A list of line items to be displayed in the digital wallet payment sheet
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- totalPriceLabel → String?
-
A custom value to override the default total price label in the Google Pay sheet (Android only)
final
- validateLineItems → bool
-
Whether or not to validate the line items. If
true
, OloPaySdk.createDigitalWalletPaymentMethod will throw an exception if the sum of the line items does not equal the total amount passed in. If no line items are provided, this parameter is ignored. Default istrue
.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited