Subversion Repositories SmartDukaan

Rev

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

Rev 12552 Rev 12978
Line 189... Line 189...
189
                                </tbody>
189
                                </tbody>
190
                            </table>
190
                            </table>
191
<div class="message" style="padding-top: 30px;">
191
<div class="message" style="padding-top: 30px;">
192
	$status.get(2)
192
	$status.get(2)
193
</div>
193
</div>
-
 
194
#if($action.isRechargeModeSynchronous())
-
 
195
	<div id="countdown" style="margin:10px auto auto;width:125px;display:block;"></div>
-
 
196
	<script src="/js/jquery.countdown360.js" type="text/javascript" charset="utf-8"></script>
-
 
197
    <script type="text/javascript" charset="utf-8">
-
 
198
    	$("#countdown").countdown360({
-
 
199
	         radius      : 50,
-
 
200
    	     seconds     : 60,
-
 
201
        	 fontColor   : 'white',
-
 
202
         	fillStyle   : '#6699ff',
-
 
203
         	strokeStyle : '#F6F47A',
-
 
204
         	autostart   : true,
-
 
205
         	onComplete  : function () { hideCountDown()}
-
 
206
     	})
-
 
207
		function hideCountDown(){
-
 
208
			$('#countdown').hide();
-
 
209
			jQuery.ajax({
-
 
210
                type : "GET",
-
 
211
                url : "/recharge-result!getRechargeStatus?rechargeOrderId="+$rechargeOrder.getId()+"&isFinal=true",
-
 
212
                success : function(response) {
-
 
213
					if (response=='RECHARGE_SUCCESSFUL' || response == 'RECHARGE_FAILED' || response == 'PAYMENT_SUCCESSFUL'){
-
 
214
						location.reload();
-
 
215
					}
-
 
216
                },
-
 
217
                error : function() {
-
 
218
                }
-
 
219
           });
-
 
220
           location.reload();
-
 
221
		}
-
 
222
		function checkUnknownTransactions(){
-
 
223
			jQuery.ajax({
-
 
224
				type : "GET",
-
 
225
				url : "/recharge-result!getRechargeStatus?rechargeOrderId="+$rechargeOrder.getId()+"&isFinal=false",
-
 
226
				success : function(response) {
-
 
227
					if (response=='RECHARGE_SUCCESSFUL' || response == 'RECHARGE_FAILED' || response == 'PAYMENT_SUCCESSFUL'){
-
 
228
						location.reload();
-
 
229
					}
-
 
230
					if ($('#countdown').is(':visible')){	
-
 
231
						window.setTimeout(checkUnknownTransactions, 5000);
-
 
232
					}
-
 
233
				},
-
 
234
				error : function() {
-
 
235
				}
-
 
236
			});
-
 
237
	}
-
 
238
</script>
-
 
239
<script type="text/javascript">
-
 
240
  $(function(){
-
 
241
  	if ($('#countdown').is(':visible')){	
-
 
242
		window.setTimeout(checkUnknownTransactions, 4000);
-
 
243
	}
-
 
244
	});
-
 
245
</script>
-
 
246
#end
194
</div>
247
</div>
195
</div>
248
</div>
196
#end
249
#end
197
				</div>
250
				</div>
198
			</div>
251
			</div>
Line 200... Line 253...
200
				$action.getCartWidgetSnippet()
253
				$action.getCartWidgetSnippet()
201
			</div>
254
			</div>
202
		</div>
255
		</div>
203
	</div>
256
	</div>
204
	#include("templates/footer.vm")
257
	#include("templates/footer.vm")
205
	
-
 
206
    <script type="text/javascript" charset="utf-8">
258
    <script type="text/javascript" charset="utf-8">
207
	#set($order = $action.getRechargeOrder())
259
	#set($order = $action.getRechargeOrder())
208
	
260
	
209
	#if($order.getStatus().name()=="RECHARGE_SUCCESSFUL")
261
	#if($order.getStatus().name()=="RECHARGE_SUCCESSFUL")
210
		  ga('ecommerce:addTransaction', {
262
		  ga('ecommerce:addTransaction', {