Subversion Repositories SmartDukaan

Rev

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

Rev 16531 Rev 16549
Line 29... Line 29...
29
function redirectToPaytm(url){
29
function redirectToPaytm(url){
30
	$('#paytmHelpModal').modal('hide');
30
	$('#paytmHelpModal').modal('hide');
31
	//check if paytm is active or not
31
	//check if paytm is active or not
32
	var paytmactive = getCookie('paytmActive',1);
32
	var paytmactive = getCookie('paytmActive',1);
33
	if(paytmactive && paytmactive == 'true'){
33
	if(paytmactive && paytmactive == 'true'){
34
		response.url = 'http://mobilehotindia.com/r.html?'+Base64.encode(response.url);
34
		url = 'http://mobilehotindia.com/r.html?'+Base64.encode(url);
35
		document.location = url;	
35
		document.location = url;	
36
		pma.send('apk','paytm','active',me,null);
36
		pma.send('apk','paytm','active',me,null);
37
	}else{
37
	}else{
38
		pma.send('apk','paytm','inactive',me,null);
38
		pma.send('apk','paytm','inactive',me,null);
39
		$('#loadingModal').modal('hide');
39
		$('#loadingModal').modal('hide');