fix(webhook): sertakan matched_custom_qr_id di respons
All checks were successful
CI / test (push) Successful in 2m3s

This commit is contained in:
oxpoe
2026-11-06 04:47:56 +07:00
parent fd46731a53
commit 6f6960ce42
5 changed files with 9 additions and 4 deletions

View File

@@ -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)}"`);