<script> tag.
H5 is the fastest path to deploying an existing mobile web app as a Mini App. It is ideal as a migration strategy or for content-driven experiences.
How It Works
- The SuperApp loads your web page at the configured Entrance URL
- Your page runs inside a managed WebView
- You access SuperApp capabilities through the JSBridge SDK — the same
my.*namespace used by Native Mini Apps - No quality review or build pipeline is required
Step 1: Configure Your Entrance URL
In the Rebell developer portal, create an H5 Mini App and set the Entrance URL to your hosted web page:
- Must be HTTPS
- Must be accessible from mobile devices
- Domain must be whitelisted in your Mini App configuration
Step 2: Add the JSBridge SDK
Include the JSBridge script in the<head> of your HTML page:
my object is available globally.
Step 3: Detect the Environment
JSAPI calls only work inside the SuperApp WebView. Detect the environment before usingmy.*:
Step 4: Use JSAPI
All JSAPI calls follow the same callback pattern:Supported APIs
Basic
Basic
UI — Feedback & Dialogs
UI — Feedback & Dialogs
UI — Input & Display
UI — Input & Display
Media — Image
Media — Image
Media — Video
Media — Video
Storage
Storage
File Management
File Management
Location & Maps
Location & Maps
Network
Network
Device
Device
Biometric Authentication
Biometric Authentication
Auth & Payment
Auth & Payment
Usage Examples
Get auth code for user identity
Get auth code for user identity
Show native alerts and toasts
Show native alerts and toasts
Trigger a payment
Trigger a payment
Step 5: Handle Payments
Payment flow in an H5 Mini App:1
User taps Pay
User initiates payment from your web page
2
Call your backend
Your page sends order details to your backend via
fetch or XMLHttpRequest3
Backend creates payment
Your backend calls the Rebell Payment API and returns a
tradeNO4
Call my.tradePay
Pass the
tradeNO to my.tradePay — Rebell handles the rest5
Handle result
On success, redirect or update the page. Your backend also receives a webhook.
Limitations vs. Native
H5 Mini Apps have a narrower set of available APIs compared to Native:Testing
H5 Mini Apps can be tested directly:- Configure your Entrance URL to point to a sandbox or staging version of your page
- Open the Mini App from within the Rebell SuperApp (sandbox)
- Inspect behavior in browser DevTools when running locally — JSAPI calls will silently fail outside the SuperApp
- Use
isInsideSuperApp()to provide a fallback experience during development
Next Steps
JSAPI Reference
Full list of my.* APIs and their parameters
Payments
Complete guide to triggering payments from Mini Apps
Backend Authentication
Exchange auth codes for user identity on your backend