Sample App
View a complete working example
Why Use Checkout?
Fast Integration
Fast Integration
Mount pre-built widgets instead of building complex transaction UIs. Handle swaps, bridges, and payments with a few lines of code.
Abstracts Complexity
Abstracts Complexity
Users don’t need to understand gas, bridges, or DEXs. The widget guides them through each flow with clear UI.
Customizable
Customizable
Match your app’s theme with built-in dark/light modes and language localization.
Passport + External Wallets
Passport + External Wallets
Works with Passport, MetaMask, WalletConnect, and any EIP-1193 compatible wallet.
Available Flows
| Flow | Description |
|---|---|
| Connect | Connect wallets (Passport, MetaMask, WalletConnect) |
| Wallet | View balances, access other flows |
| Swap | Exchange tokens on Immutable Chain |
| Bridge | Move tokens between Ethereum and Immutable Chain |
| Onramp | Buy crypto with credit card, Apple Pay, Google Pay |
| Fund | Add specific tokens to wallet |
| Sale | Sell NFTs with integrated payment handling |
Installation
- npm
- yarn
- CDN
Quick Start
Configuration Options
| Option | Values | Description |
|---|---|---|
theme | 'dark', 'light' | Widget color theme |
language | 'en', 'ja', 'ko', 'zh' | UI language |
version | { major, minor, patch } | Pin to specific SDK version |
Widget Methods
All commerce widgets share these methods:| Method | Description |
|---|---|
mount(elementId, params) | Mount widget to DOM element |
update(config) | Update widget configuration |
addListener(event, callback) | Listen to events |
removeListener(event) | Remove event listener |
unmount() | Clean up widget |
Common Events
All flows emit these events:| Event | Description | Payload |
|---|---|---|
INITIALISED | Widget loaded and ready | — |
CLOSE | User clicked close button | — |
SUCCESS | Flow completed successfully | Flow-specific data |
FAILURE | Error occurred | { error } |
PROVIDER_UPDATED | Wallet provider changed | { provider } |