Skip to main content
The SDK opens the same widget in three ways. Pick one per entry point; you can use different modes in different parts of your app.

Overlay mode

Opens the widget as a full-screen modal overlay. This is the default when you don’t pass containerId.
Call sdk.close() to remove it, or let the user close it from the widget.

Embedded mode

Mounts the widget inside a DOM element you own. Pass the element’s ID as containerId, and size it with width and height.

Redirect mode

Builds a widget URL without opening an iframe. Use it for native apps, email links or server-side flows. createRedirectUrl is static, so you don’t need an instance.
In redirect mode the widget runs outside your page, so browser events don’t reach your app. Track the order with webhooks.

Next: Events & commands

React to order progress and send data back to the widget