PaymentParameters class

Parameters used to get payment data from a digital wallet

Constructors

PaymentParameters({required double amount, GooglePayCheckoutStatus googlePayCheckoutStatus = GooglePayCheckoutStatus.finalImmediatePurchase, String? totalPriceLabel, List<LineItem>? lineItems, bool validateLineItems = true})
Create 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<LineItem>?
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, PayDigitalWalletsSdk.getPaymentData 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.
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