executable: true. The provider presents the
widget in a full-screen native modal and handles the full purchase flow —
including payment-method selection, verification, and transaction confirmation.
Setup widget
Parameters
This method does not require a separate auth token. The client uses stored credentials from an active connection.
WidgetEvent
onEvent receives events as the widget flow progresses. Use event.kind to decide how to handle each event.
FrameTransaction
The transaction reported by the widget on "complete". The shape depends on the outcome.
To track the final status after
"complete", pass transaction.id to client.getTransaction().
WidgetEventError
Result
client.setupWidget() returns a Result<WidgetFrame, SetupWidgetError>.
Result envelope
Result<WidgetFrame, SetupWidgetError>
WidgetFrame
SetupWidgetError
TS Definitions
TS Definitions
types.ts