SDK menyediakan shortcut methods untuk generate QRIS per wallet — lebih ringkas dari generateQRISv2.
// DANA Bisnis
const trx = await qrisy.wallets.generateQRDana(15000, {
qr_id: 'your-merchant-uuid',
expiredInMinutes: 15, // optional
});
// GoPay Merchant
const trx = await qrisy.wallets.generateQRGoPay(25000, { qr_id: 'uuid' });
// ShopeePay
const trx = await qrisy.wallets.generateQRShopee(50000, { qr_id: 'uuid' });
// Generic (via walletId atau packageName)
const trx = await qrisy.wallets.generateQRWallet('dana', 10000, { qr_id: 'uuid' });
const trx = await qrisy.wallets.generateQRWallet('com.shopee.id', 50000, { qr_id: 'uuid' });# DANA
trx = qrisy.wallets.generate_qr_dana(15000, qr_id="uuid")
# GoPay
trx = qrisy.wallets.generate_qr_gopay(25000, qr_id="uuid")
# ShopeePay
trx = qrisy.wallets.generate_qr_shopee(50000, qr_id="uuid")
# Generic
trx = qrisy.wallets.generate_qr_wallet("com.shopee.id", 50000, qr_id="uuid")$trx = $qrisy->wallets->generateQRDana(15000, ['qr_id' => 'uuid']);
$trx = $qrisy->wallets->generateQRGoPay(25000, ['qr_id' => 'uuid']);
$trx = $qrisy->wallets->generateQRShopee(50000, ['qr_id' => 'uuid']);
$trx = $qrisy->wallets->generateQRWallet('com.shopee.id', 50000, ['qr_id' => 'uuid']);| Wallet ID | Package Name | Name | Status |
|---|---|---|---|
dana | id.dana | DANA Bisnis | ✅ MVP |
gopay | com.gojek.gopaymerchant | GoPay Merchant | ✅ MVP |
shopee | com.shopee.id | ShopeePay | ✅ MVP |
bca | com.bca.msb | BCA Merchant | Roadmap |
mandiri | id.bmri.livinmerchant | Livin by Mandiri | Roadmap |
Semua shortcut menerima options berikut (semua optional kecuali qr_id):
| Option | Type | Default | Description |
|---|---|---|---|
qr_id | string (uuid) | — (required) | QRIS merchant ID |
useUniqueCode | boolean | true | Add 1-999 unique code |
expiredInMinutes | int (1-60) | 15 | QR expiry |
qrType | dynamic | static | dynamic | QR type |
paymentMethod | qris | ewallet | qris | Payment method |
useQris | boolean | true | Include qr_string in response |
prefix | string (max 8) | txn | Transaction ID prefix |