PaymentSheetConfiguration class final

Configuration stored for the next native payment-sheet presentation.

orderId is the public identifier returned by a merchant backend after it creates and finalizes an Order. Never put a merchant API key in Flutter.

Constructors

PaymentSheetConfiguration({String? orderId, String? purchaseIntentId, Uri? returnUrl, PaymentSheetAppearance appearance = const PaymentSheetAppearance(), PaymentSheetTelemetry telemetry = const PaymentSheetTelemetry(), PaymentSheetFeatures features = const PaymentSheetFeatures()})
Creates client-owned Checkout and presentation configuration.
const

Properties

appearance → PaymentSheetAppearance
Restrained native appearance overrides.
final
features → PaymentSheetFeatures
Optional content and post-payment actions.
final
hashCode → int
The hash code for this object.
no setterinherited
orderId → String?
Public ID of an Order created and finalized by the backend.
final
purchaseIntentId → String?
Public Purchase Intent whose amount the payer will choose.
final
returnUrl → Uri?
Absolute application URI used after an external provider handoff.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
telemetry → PaymentSheetTelemetry
Host-owned diagnostics and trace-context options.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object>
Validates and serializes configuration for the native bridge.
toString() → String
A string representation of this object.
inherited

Operators

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