From e2ebc079f16505a1a18fbed8b33b59d00e6dc7d6 Mon Sep 17 00:00:00 2001 From: oxpoe Date: Fri, 6 Nov 2026 11:11:47 +0700 Subject: [PATCH] fix(webhook): dukung variasi notifikasi ShopeePay - kata 'ditambahkan'/'telah ditambahkan' dianggap pembayaran masuk - regex nominal mendukung frasa tersebut - versi 0.6.13 --- CHANGELOG.md | 5 +++++ README.md | 2 +- app-customer.js | 7 ++++--- package.json | 2 +- version.txt | 2 +- 5 files changed, 12 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e7d1c2..48ec734 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.13] — 2026-11-06 — "webhook-shopeepay" + +### Diperbaiki +- Parser notifikasi pembayaran mendukung variasi **ShopeePay / Mitra Shopee** yang memakai kata “ditambahkan” / “telah ditambahkan”, tanpa mengubah aplikasi Android. + ## [0.6.12] — 2026-11-06 — "acs-virtual" ### Diperbaiki diff --git a/README.md b/README.md index d1c4e09..c772a43 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@

Lisensi: ISC - Versi 0.6.12 (acs-virtual) + Versi 0.6.13 (webhook-shopeepay) Node.js >= 20 Docker Demo diff --git a/app-customer.js b/app-customer.js index 72cff5d..8bb542c 100644 --- a/app-customer.js +++ b/app-customer.js @@ -387,7 +387,7 @@ function parseRupiahAmountFromNotification(content) { 'dana masuk', 'saldo masuk', 'saldo bertambah', 'berhasil top up', 'top up berhasil', 'topup berhasil', 'terima uang', 'telah diterima dari', 'diterima dari', 'qris berhasil', 'qris sukses', 'qr berhasil', 'qr sukses', - 'payment received', 'kamu menerima', 'berhasil menerima', 'menambahkan', + 'payment received', 'kamu menerima', 'berhasil menerima', 'menambahkan', 'ditambahkan', 'telah ditambahkan', 'berhasil ditambahkan', 'telah diterima sebesar', 'uang diterima', 'menerima dana', 'dana diterima', 'menerima sebesar', 'baru saja menerima', 'telah menerima', 'just received', 'you received', 'you have received', 'funds received', 'has been received', 'incoming transfer', 'credited' ]; @@ -410,7 +410,8 @@ function parseRupiahAmountFromNotification(content) { 'uang masuk', 'telah diterima', 'top up berhasil', 'topup berhasil', 'berhasil top up', 'menerima pembayaran', 'qris statis diterima', 'qris diterima', 'pembayaran qris', 'menerima dana', 'dana diterima', 'menerima sebesar', 'telah menerima', - 'just received', 'you received', 'you have received', 'funds received', 'has been received' + 'just received', 'you received', 'you have received', 'funds received', 'has been received', + 'ditambahkan', 'telah ditambahkan', 'berhasil ditambahkan' ]; const hasStrongIncoming = strongIncoming.some((hint) => lower.includes(hint)); @@ -427,7 +428,7 @@ function parseRupiahAmountFromNotification(content) { const candidates = [ /(?:\bRp\.?\s*|IDR\s*)([0-9][0-9\.\,\s]*)/i, - /(?:sebesar|senilai|nominal|masuk|transfer|top\s*up|topup|saldo\s+masuk)\s*(?:saldo\s*)?(?:\bRp\.?\s*)?([0-9][0-9\.\,\s]*)/i, + /(?:sebesar|senilai|nominal|masuk|transfer|top\s*up|topup|saldo\s+masuk|ditambahkan)\s*(?:saldo\s*)?(?:\bRp\.?\s*)?([0-9][0-9\.\,\s]*)/i, ]; let raw = null; diff --git a/package.json b/package.json index 091468f..7086704 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "open-isp", - "version": "0.6.12", + "version": "0.6.13", "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 e9acb99..4655c9e 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.6.12 \ No newline at end of file +0.6.13 \ No newline at end of file