Documentation Index
Fetch the complete documentation index at: https://docs.caibo.digital/llms.txt
Use this file to discover all available pages before exploring further.
Overview
This page shows the smallest working integration for both display modes of the embedded checkout SDK. Use inline when you want the payment UI to appear within your page layout, or modal when you want a centered overlay above your page.Include the SDK
Add the SDK script to your page. It exposes the globalCaiboCheckout object.
Inline Mode
The checkout appears directly within a<div> on your page. Ideal for single-page checkout flows.
When to use inline
Single-step checkout
The whole purchase flow lives on one page; embed the iframe as the next step.
Custom layout control
You decide the iframe size and surrounding elements (totals, terms, support links).
Modal Mode
The checkout opens as a centered modal with backdrop overlay. No container element needed. The modal handles its own UI — backdrop, close button (×), and the Esc key — all firingonCancel.
When to use modal
Cart-style flows
Trigger payment from a button without disturbing the underlying page.
Optional payment
Subscriptions, top-ups, donations — the modal can be opened and closed at will.
Behavior Summary
| Aspect | Inline | Modal |
|---|---|---|
| Container required | Yes — containerId | No — overlay attached to <body> |
| Backdrop | None | Provided by the SDK |
| Close mechanisms | Programmatic via destroy() | Backdrop click, × button, Esc key (all onCancel) |
| Body scroll lock | Not applied | document.body.style.overflow = 'hidden' while open |
| Auto-cleanup on event | Yes (success, failure, cancel) | Yes (success, failure, cancel) |
Next Steps
- SDK API Reference — every option, event, and payload field.
- Framework Examples — React, Angular, and Vue 3 snippets.

