Dokumentasi Integrasi ArulzXD Pay Gateway
Sertakan header x-api-key: axp_live_xxx pada setiap permintaan API. Setiap request akan menghitung 1 kuota harian sesuai paket Anda.
POST /api/v1/qris/create
GENERATE QRIS
Membuat transaksi QRIS dinamis baru dengan nominal dan kode unik otomatis.
const response = await fetch('https://haqqiofficial.web.id/api/v1/qris/create', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'x-api-key': 'axp_live_isi_api_key_anda'
},
body: JSON.stringify({
amount: 25000,
reference_id: 'TRX-STORE-991',
unique_code: true,
expiry_minutes: 15
})
});
const result = await response.json();
GET /api/v1/qris/invoice/:invoiceId
AUTO CEK MUTASI
Mengecek status invoice sekaligus melakukan pencocokan mutasi masuk ke jurnal GoPay Merchant secara real-time. Disarankan polling setiap 10–15 detik.
const res = await fetch('https://haqqiofficial.web.id/api/v1/qris/invoice/INV-1796281920-A4F1', {
headers: { 'x-api-key': 'axp_live_isi_api_key_anda' }
});
const data = await res.json();
// data.data.status => "pending" | "paid" | "expired"
WEBHOOK CALLBACK & VERIFIKASI HMAC-SHA256
SECURITY
Saat status transaksi berubah menjadi paid, server akan mengirim HTTP POST ke Webhook URL Anda beserta header X-ArulzXD-Signature.
import crypto from 'crypto';
app.post('/webhook/arulzxd-pay', express.raw({ type: 'application/json' }), (req, res) => {
const signature = req.headers['x-arulzxd-signature'];
const expected = crypto
.createHmac('sha256', 'whsec_secret_dari_dashboard')
.update(req.body)
.digest('hex');
if (signature !== expected) {
return res.status(401).send('Invalid signature');
}
const event = JSON.parse(req.body.toString());
if (event.status === 'paid') {
// Tambahkan saldo user / proses pesanan otomatis
}
res.sendStatus(200);
});