Commit cbcf0d22401591c0d277b7d4e31c0d2c4286641d
1 parent
7dcdea777d
Exists in
master
Gagalkan transaksi yang remote product blm terdefinisi
Showing 1 changed file with 9 additions and 0 deletions Side-by-side Diff
lib/partner-mkios.js
... | ... | @@ -256,6 +256,15 @@ function onTrxFinish(trx_id) { |
256 | 256 | } |
257 | 257 | |
258 | 258 | function buy(task) { |
259 | + if (task.product === task.remote_product) { | |
260 | + report({ | |
261 | + trx_id: task.trx_id, | |
262 | + rc: '40', | |
263 | + message: 'INTERNAL: Gagal melakukan transaksi. Kode USSD belum terdefinisi.' | |
264 | + }); | |
265 | + return; | |
266 | + } | |
267 | + | |
259 | 268 | suspendPull(task.trx_id); |
260 | 269 | last_trx_id = task.trx_id; |
261 | 270 |