Subversion Repositories SmartDukaan

Rev

Rev 13046 | Rev 13266 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13046 Rev 13047
Line 47... Line 47...
47
          if (response == 'RECHARGE_SUCCESSFUL' || response == 'RECHARGE_FAILED' || response == 'PAYMENT_SUCCESSFUL') {
47
          if (response == 'RECHARGE_SUCCESSFUL' || response == 'RECHARGE_FAILED' || response == 'PAYMENT_SUCCESSFUL') {
48
            reload();
48
            reload();
49
          }
49
          }
50
          incrementCounter();
50
          incrementCounter();
51
          if ($('#countdown').is(':visible')) {
51
          if ($('#countdown').is(':visible')) {
52
            if (callCounter < 4) {
52
            if (callCounter < 3) {
53
              window.setTimeout(checkUnknownTransactions, 5000);
53
              window.setTimeout(checkUnknownTransactions, 5000);
54
            }
54
            }
55
          }
55
          }
56
        },
56
        },
57
        error: function() {
57
        error: function() {
58
          incrementCounter();
58
          incrementCounter();
59
          if ($('#countdown').is(':visible')) {
59
          if ($('#countdown').is(':visible')) {
60
            if (callCounter < 4) {
60
            if (callCounter < 3) {
61
              window.setTimeout(checkUnknownTransactions, 5000);
61
              window.setTimeout(checkUnknownTransactions, 5000);
62
            }
62
            }
63
          }
63
          }
64
        }
64
        }
65
      });
65
      });