Skip to main content

URL

Requirements

Permissions

The payment permission policy is required.
Example

Initialization parameters

Events

All events are dispatched using the message pattern described in the frames protocol. Below are the event payloads specific to the widget frame.

Outbound events

frame->parent These events are sent from this frame to the parent window.

handshake

The frame requests that you open a message channel.

ready

The widget finished loading and the UI is visible.

transactionCreated

A transaction has been initiated. The customer may still need to complete additional steps such as 3-D Secure authorization.

complete

The transaction has reached a terminal state. Use the transaction ID to track status updates via polling or webhooks.

error

An error occurred in the widget flow.

Inbound events

parent->frame These events are sent from the parent window to this frame.

ack

Acknowledge the handshake.