Wallet Shortcuts

SDK menyediakan shortcut methods untuk generate QRIS per wallet — lebih ringkas dari generateQRISv2.

Node.js

// 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' });

Python

# 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")

PHP

$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']);

Supported Wallets

Wallet IDPackage NameNameStatus
danaid.danaDANA Bisnis✅ MVP
gopaycom.gojek.gopaymerchantGoPay Merchant✅ MVP
shopeecom.shopee.idShopeePay✅ MVP
bcacom.bca.msbBCA MerchantRoadmap
mandiriid.bmri.livinmerchantLivin by MandiriRoadmap

Options

Semua shortcut menerima options berikut (semua optional kecuali qr_id):

OptionTypeDefaultDescription
qr_idstring (uuid)— (required)QRIS merchant ID
useUniqueCodebooleantrueAdd 1-999 unique code
expiredInMinutesint (1-60)15QR expiry
qrTypedynamic | staticdynamicQR type
paymentMethodqris | ewalletqrisPayment method
useQrisbooleantrueInclude qr_string in response
prefixstring (max 8)txnTransaction ID prefix