Commit 6bebd62673ba69e5cfcbd68c0aaef858a8755262

Authored by Adhidarma Hadiwinoto
1 parent 07ecd50318
Exists in master

handle duplicate transaction response 55

Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff

partner-scrappingkisel.js
... ... @@ -77,7 +77,11 @@ function topupRequest(task) {
77 77 } else if (message == "Phone number's not found") {
78 78  
79 79 response_code = '14';
  80 +
  81 + } else if (message == "Duplicate transaction") {
80 82  
  83 + response_code = '55';
  84 +
81 85 } else if (message == "TRANSAKSI SUKSES !!!") {
82 86 var destination = result.trx_response.msisdn.join(' ').trim();
83 87 var product = result.trx_response.product.join(' ').trim();