URL
Requirements
Size
The frame is headless. Mount it with zero dimensions so it does not affect your layout: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 Buy 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 buy pipeline is starting. Use this to show a loading indicator in your UI.
complete
The transaction is complete. Use the transaction ID to track final status via
polling.
challenge
Verification is required before the transaction can proceed. Render the
challenge frame at the provided URL. Do not
construct the URL yourself — use it as-is.
error
A terminal error occurred. Remove the frame and surface the message to the
developer.
Inbound events
parent->frame These events are sent from the parent window to this frame.ack
Acknowledge the handshake.
setQuote
Provide a new quote to the frame. Send this when the current quote expires
before the customer completes the purchase. Pass signature as returned by the
quote endpoint.