Subversion Repositories SmartDukaan

Rev

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

Rev 12528 Rev 12990
Line 6... Line 6...
6
    <div><?php echo $recharge_orderconfirmation[0]->response->rechargeDisplayId; ?></div>
6
    <div><?php echo $recharge_orderconfirmation[0]->response->rechargeDisplayId; ?></div>
7
  </div>
7
  </div>
8
  <div class="r-cont clearfix">
8
  <div class="r-cont clearfix">
9
    <div>Status</div>
9
    <div>Status</div>
10
    <div><?php echo $recharge_orderconfirmation[0]->response->rechargeStatus; ?></div>
10
    <div><?php echo $recharge_orderconfirmation[0]->response->rechargeStatus; ?></div>
-
 
11
<?php if(isset($recharge_orderconfirmation[0]->response->isOperatorAsynchronous) && $recharge_orderconfirmation[0]->response->isOperatorAsynchronous ==1):?>
-
 
12
<div id="countdown" style="margin:10px auto;display:block;"></div>
-
 
13
	<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
-
 
14
        <script src="/assets/js/jquery.countdown360.js" type="text/javascript" charset="utf-8"></script>
-
 
15
    <script type="text/javascript" charset="utf-8">
-
 
16
        $("#countdown").countdown360({
-
 
17
                 radius      : 50,
-
 
18
             seconds     : 60,
-
 
19
                 fontColor   : 'white',
-
 
20
                fillStyle   : '#6699ff',
-
 
21
                strokeStyle : '#F6F47A',
-
 
22
                autostart   : true,
-
 
23
                onComplete  : function () { hideCountDown()}
-
 
24
        })
-
 
25
                function hideCountDown(){
-
 
26
                        $('#countdown').hide();
-
 
27
                        jQuery.ajax({
-
 
28
                type : "GET",
-
 
29
 
-
 
30
                url : "/recharge-status?id=<?php echo substr($recharge_orderconfirmation[0]->response->rechargeDisplayId,4);?>&isFinal=true",
-
 
31
                success : function(response) {
-
 
32
                                        if (response=='RECHARGE_SUCCESSFUL' || response == 'RECHARGE_FAILED' || response == 'PAYMENT_SUCCESSFUL'){
-
 
33
                                                location.reload();
-
 
34
                                        }
-
 
35
                },
-
 
36
                error : function() {
-
 
37
                }
-
 
38
           });
-
 
39
           location.reload();
-
 
40
                }
-
 
41
                function checkUnknownTransactions(){
-
 
42
                        jQuery.ajax({
-
 
43
                                type : "GET",
-
 
44
                                url : "/recharge-status?id=<?php echo substr($recharge_orderconfirmation[0]->response->rechargeDisplayId,4);?>&isFinal=false",
-
 
45
                                success : function(response) {
-
 
46
                                        if (response=='RECHARGE_SUCCESSFUL' || response == 'RECHARGE_FAILED' || response == 'PAYMENT_SUCCESSFUL'){
-
 
47
                                                location.reload();
-
 
48
                                        }
-
 
49
                                        if ($('#countdown').is(':visible')){
-
 
50
                                                window.setTimeout(checkUnknownTransactions, 5000);
-
 
51
                                        }
-
 
52
                                },
-
 
53
                                error : function() {
-
 
54
                                }
-
 
55
                        });
-
 
56
        }
-
 
57
</script>
-
 
58
<script type="text/javascript">
-
 
59
  $(function(){
-
 
60
        if ($('#countdown').is(':visible')){
-
 
61
                window.setTimeout(checkUnknownTransactions, 40000);
-
 
62
        }
-
 
63
        });
-
 
64
</script>
-
 
65
<?php endif;?>
-
 
66
 
11
  </div>
67
  </div>
12
  <div class="r-info">
68
  <div class="r-info">
13
    <div class="r-info-head clearfix">
69
    <div class="r-info-head clearfix">
14
      <?php if(strpos($recharge_orderconfirmation[0]->response->rechargeDisplayId, 'DTH') !== false){?>
70
      <?php if(strpos($recharge_orderconfirmation[0]->response->rechargeDisplayId, 'DTH') !== false){?>
15
      <div>Account Number</div>
71
      <div>Account Number</div>