Commit f7bf38a0457b1b00c777eb7af6ffcd2c5ebe384a

Authored by Adhidarma Hadiwinoto
1 parent 2c1d4ff41b
Exists in master

auto resend dari config

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

partner-simplepay.js
... ... @@ -52,7 +52,7 @@ function callbackReport(requestId, rc, message, options) {
52 52  
53 53 //return;
54 54 // resend trx as status check if rc 68 and task is defined
55   - if (options && options.task && (rc == '68')) {
  55 + if (config && config.partner.auto_resend && Number(config.partner.auto_resend) && options && options.task && (rc == '68')) {
56 56 logger.verbose('Got pending trx, requesting in ' + seconds_to_wait_before_resend_on_pending + ' secs');
57 57 setTimeout(function() {
58 58 checkStatus(options.task);