PaymentSheetEvent class final

One ordered application-facing transition from a Checkout presentation.

Constructors

PaymentSheetEvent({required String flowId, required int sequence, required PaymentSheetEventType type, required DateTime occurredAt, CheckoutOrder? order, CheckoutAction? action, CheckoutFailure? failure, bool? complete, String? paymentMethod})
Creates one ordered Checkout lifecycle event.
const
PaymentSheetEvent.fromJson(Map<Object?, Object?> value)
Parses and validates a lifecycle event from the native bridge.
factory

Properties

action → CheckoutAction?
Customer action required by paymentActionRequired.
final
complete → bool?
Whether required payer input is complete for a change event.
final
failure → CheckoutFailure?
Sanitized failure attached to failure events.
final
flowId → String
Random identifier shared by events from one sheet presentation.
final
hashCode → int
The hash code for this object.
no setterinherited
isRecoverableFailure → bool
Whether this event describes a retryable payment attempt.
no setter
isTerminal → bool
Whether this event closes the current sheet presentation.
no setter
occurredAt → DateTime
Time at which the native SDK emitted the event.
final
order → CheckoutOrder?
Client-safe Order snapshot for Order-backed events.
final
paymentMethod → String?
Selected payment method for a change event, when known.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sequence → int
Monotonically increasing event order within the flow.
final
type → PaymentSheetEventType
Lifecycle transition represented by this event.
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