PaymentSheetConfiguration class final
Configuration stored for the next native payment-sheet presentation.
Provide either orderId, returned by a merchant backend after it finalizes an Order, or purchaseIntentId for a Buy link whose Order is created only when the payer submits payment. Never put a merchant API key in Flutter.
Constructors
- PaymentSheetConfiguration({String? orderId, String? purchaseIntentId, String title = 'Payment', 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 Buy link whose product choices remain local until payment is submitted.
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
- title → String
-
Visible payment-sheet title.
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