diff --git a/lib/partner.js b/lib/partner.js index 2c1d0ad..4ec0c08 100644 --- a/lib/partner.js +++ b/lib/partner.js @@ -10,7 +10,16 @@ function buy(task, xid) { setTimeout( () => { - if (task.destination % 2) { + const destination = task.destination.toString(); + + if ((destination % 10) === 0) { + pull.report({ + trx_id: task.trx_id, + rc: '68', + message: `PENDING karena nomor tujuan ${task.destination} diakhiri 0`, + balance: config.supplier_ending_balance, + }); + } else if (destination % 2) { pull.report({ trx_id: task.trx_id, rc: '14',