From 6f6960ce4247eb7f9b7afe9cf070bd90bc155223 Mon Sep 17 00:00:00 2001 From: oxpoe Date: Fri, 6 Nov 2026 04:47:56 +0700 Subject: [PATCH] fix(webhook): sertakan matched_custom_qr_id di respons --- CHANGELOG.md | 5 +++++ README.md | 2 +- app-customer.js | 2 +- package.json | 2 +- version.txt | 2 +- 5 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6017082..10fcc0b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ Format mengikuti [Keep a Changelog](https://keepachangelog.com/) dan [Semantic Versioning](https://semver.org/). +## [0.6.2] — 2026-11-06 — "webhook-diag" + +### Diperbaiki +- Respons webhook pembayaran kini menyertakan `matched_custom_qr_id` untuk memudahkan diagnosis QR-Custom Payment. + ## [0.6.1] — 2026-11-06 — "qr-custom-gate" ### Diperbaiki diff --git a/README.md b/README.md index b3ee0a7..a912430 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@

Lisensi: ISC - Versi 0.6.1 (qr-custom-gate) + Versi 0.6.2 (webhook-diag) Node.js >= 20 Docker Demo diff --git a/app-customer.js b/app-customer.js index b3e999b..706d0a9 100644 --- a/app-customer.js +++ b/app-customer.js @@ -1130,7 +1130,7 @@ app.post('/api/webhook/v1/payment-notif', multer().any(), async (req, res) => { if (amount != null) { logger.info(`[WEBHOOK][payment-notif] PARSED service=${String(service || '-')} amount=${amount}`); - return res.status(200).json({ status: 'processed', parsed: true, amount, matched_invoice_id: matchedInvoiceId, matched_voucher_order_id: matchedVoucherOrderId, matched_donation_order_id: matchedDonationOrderId }); + return res.status(200).json({ status: 'processed', parsed: true, amount, matched_invoice_id: matchedInvoiceId, matched_voucher_order_id: matchedVoucherOrderId, matched_donation_order_id: matchedDonationOrderId, matched_custom_qr_id: matchedCustomQrId }); } logger.error(`[WEBHOOK][payment-notif] FAILED parse: "${rawText.replace(/\r?\n/g, ' ').slice(0, 500)}"`); diff --git a/package.json b/package.json index 6989a76..b883d37 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "open-isp", - "version": "0.6.1", + "version": "0.6.2", "description": "OPEN-ISP \u2014 sistem billing & manajemen ISP open-source (PWA pelanggan, multi-OLT, RADIUS, WhatsApp, QRIS)", "main": "app-customer.js", "scripts": { diff --git a/version.txt b/version.txt index 7ceb040..b1d7abc 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.6.1 \ No newline at end of file +0.6.2 \ No newline at end of file