From e40d51df36e647b05a97f5b1a9952f5e51e94e28 Mon Sep 17 00:00:00 2001 From: Adhidarma Hadiwinoto <gua@adhisimon.org> Date: Wed, 11 Apr 2018 17:03:34 +0700 Subject: [PATCH] disable auto resend --- partner-simplepay.js | 1 + 1 file changed, 1 insertion(+) diff --git a/partner-simplepay.js b/partner-simplepay.js index 2aac0f4..51a57d5 100644 --- a/partner-simplepay.js +++ b/partner-simplepay.js @@ -50,6 +50,7 @@ function start(options) { function callbackReport(requestId, rc, message, options) { aaa.callbackReportWithPushToMongoDb(requestId, rc, message); + return; // resend trx as status check if rc 68 and task is defined if (options && options.task && (rc == '68')) { logger.verbose('Got pending trx, requesting in ' + seconds_to_wait_before_resend_on_pending + ' secs'); -- 1.9.0