From 6bebd62673ba69e5cfcbd68c0aaef858a8755262 Mon Sep 17 00:00:00 2001
From: Adhidarma Hadiwinoto <gua@adhisimon.org>
Date: Wed, 8 Jul 2015 17:11:36 +0700
Subject: [PATCH] handle duplicate transaction response 55

---
 partner-scrappingkisel.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/partner-scrappingkisel.js b/partner-scrappingkisel.js
index 1fa79b6..fd8c3c2 100644
--- a/partner-scrappingkisel.js
+++ b/partner-scrappingkisel.js
@@ -77,7 +77,11 @@ function topupRequest(task) {
             } else if (message == "Phone number's not found") {
                 
                 response_code = '14';
+            
+            } else if (message == "Duplicate transaction") {
                 
+                response_code = '55';
+
             } else if (message == "TRANSAKSI SUKSES !!!") {
                 var destination = result.trx_response.msisdn.join(' ').trim();
                 var product = result.trx_response.product.join(' ').trim();
-- 
1.9.0