Embedded Checkout
ZendFiEmbeddedCheckout renders a complete payment flow directly inside your page. It supports wallet connect (Phantom, Solflare, Backpack), QR code payments, and fiat bank transfers. No iframe, no redirect — it is a native DOM component.
Quick Start
Configuration
EmbeddedCheckoutConfig
Payment link code. Either
linkCode or paymentId is required.Payment ID. Either
linkCode or paymentId is required.ID of the HTML element where the checkout will be mounted.
test (Devnet) or live (Mainnet).Custom API URL. Defaults to localhost:8080 in development.
Called when the payment is confirmed on-chain.
Called when any error occurs during checkout.
Called when the checkout UI is fully loaded.
Custom theme overrides.
Enable “Pay What You Want” mode.
Show or hide specific payment methods.
Theming
Customize the look and feel:CheckoutTheme
| Property | Type | Default |
|---|---|---|
primaryColor | string | #667eea |
backgroundColor | string | #ffffff |
borderRadius | string | 12px |
fontFamily | string | System font stack |
textColor | string | #1a1a1a |
buttonStyle | string | solid |
Callback Data
PaymentSuccessData
CheckoutError
Methods
mount()
Renders the checkout UI into the container element. Fetches payment data, renders the form, and starts polling for payment confirmation.unmount()
Removes the checkout UI and stops all polling.Payment Flow
Payment Methods
The checkout automatically detects available payment methods:Wallet Connect
Auto-detects Phantom, Solflare, Backpack, Coinbase, and Trust wallet extensions.
QR Code
Displays a Solana Pay-compatible QR code for mobile wallets.
Manual Transfer
Shows the payment address for direct wallet transfers.
Bank Transfer
Fiat on-ramp via NGN bank transfer (when
onramp is enabled on the payment link).