Super Qi Miniapps.
Build lightweight, powerful applications that run seamlessly within the Super Qi ecosystem. Complete guides for H5+ development, authentication, and payment integration.
Quick Start
Authorize the user, get a session token, and take a payment — the core calls every Miniapp needs.
Authorize the user
Call my.getAuthCode in the H5+ runtime to receive an authCode.
Get an access token
Exchange the authCode via applyToken on your backend.
Take a payment
Launch the wallet cashier with my.tradePay and charge in IQD.
// 1 · Request user authorization
my.getAuthCode({
scopes: ['auth_base'],
success({ authCode }) {
// 2 · Exchange authCode for an access token
// via the applyToken API on your backend.
// 3 · Launch the wallet cashier to take a payment
my.tradePay({
paymentUrl, // from the pay API response
success(res) {
console.log(res.resultCode); // 9000 = success
}
});
}
});
What You'll Find Here