Quick Start (Widget)
The fastest way to embed checkout is using the RMZ widget script. This is the same code generated by your dashboard under Settings > Embed.1. Add the script and button
2. Button attributes
3. Multiple products on one page
Add multiple buttons with different product IDs — they all share the same script:Setup in Dashboard
1
Enable embed
Go to Dashboard > Settings > Embed and toggle the feature on.
2
Select a product
Choose the product you want to embed from the dropdown.
3
Copy your public key
Under Security Settings, copy the Public Key (format:
rmz_pk_1_...). You can regenerate it at any time, but you’ll need to update the code on all sites using it.4
Configure allowed domains (optional)
Under Allowed Domains, add the domains where the widget will be used (e.g.,
https://example.com or *.example.com). Leave empty to allow all origins.5
Copy the embed code
Copy the generated HTML snippet and paste it into your website.
JavaScript Events
The widget dispatches custom DOM events you can listen for:Advanced: Direct API Integration
If you need full control over the UI, you can call the Embed API directly instead of using the widget script. This lets you build a completely custom checkout experience.Base URL
Flow
- Fetch product info:
GET /api/embed/product/{productId} - Authenticate customer via OTP:
POST /api/embed/auth/start→POST /api/embed/auth/verify - Create checkout:
POST /api/embed/checkout(orPOST /api/embed/guest/checkout) - Initiate payment:
POST /api/embed/payment/initiate - Poll for completion:
GET /api/embed/payment/status/{checkoutUrl}

