Overlay mode
Opens the widget as a full-screen modal overlay. This is the default when you don’t passcontainerId.
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 ascontainerId, 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