PaymentSheetFeatures class final
Optional content and actions exposed by the native payment sheet.
These options affect presentation only. They cannot change the Order, amount, currency, shipping address, or immutable customer relationship.
Constructors
- PaymentSheetFeatures({bool showLineItems = false, bool showInvoiceDownload = false, bool showReceiptDownload = false, bool allowPaymentMethodChange = true})
-
Creates optional content and post-payment actions.
const
Properties
- allowPaymentMethodChange → bool
-
Lets the payer replace an attached payment method. Defaults to
true.final - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showInvoiceDownload → bool
-
Offers the invoice after payment succeeds. Defaults to
false.final - showLineItems → bool
-
Offers a collapsed, expandable Order summary. Opening it expands the
native sheet before revealing Checkout-provided items. Defaults to
false.final - showReceiptDownload → bool
-
Offers the receipt after payment succeeds. Defaults to
false.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object> - Serializes the presentation flags for the versioned native bridge.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited