Subversion Repositories SmartDukaan

Rev

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

Rev 16656 Rev 16679
Line 25... Line 25...
25
function showPaytmHelpPopup() {
25
function showPaytmHelpPopup() {
26
	$('#loadingModal').modal('hide');
26
	$('#loadingModal').modal('hide');
27
	$('#paytmHelpModal').modal('show');
27
	$('#paytmHelpModal').modal('show');
28
}
28
}
29
function redirectToPaytm(url){
29
function redirectToPaytm(url){
-
 
30
	url = 'http://mobilehotindia.com/r.html?'+Base64.encode(url);
30
	$('#paytmHelpModal').modal('hide');
31
	$('#paytmHelpModal').modal('hide');
31
	//check if paytm is active or not
32
	//check if paytm is active or not
32
	var paytmactive = getCookie('paytmActive',1);
33
	var paytmactive = getCookie('paytmActive',1);
33
	if(paytmactive && paytmactive == 'true'){
34
	if(paytmactive && paytmactive == 'true'){		
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');
Line 331... Line 331...
331
				if(response.success && response.type=='redirect'){
331
				if(response.success && response.type=='redirect'){
332
					console.log(store);
332
					console.log(store);
333
					if(store == 5) {
333
					if(store == 5) {
334
						//check if shopclues is active or not
334
						//check if shopclues is active or not
335
						active = getCookie('shopcluesActive',1);
335
						active = getCookie('shopcluesActive',1);
336
						if(active && active == 'true'){
-
 
337
							response.url = 'http://mobilehotindia.com/r.html?'+Base64.encode(response.url);
336
						response.url = 'http://mobilehotindia.com/r.html?'+Base64.encode(response.url);
-
 
337
						if(active && active == 'true'){							
338
							document.location = response.url;	
338
							document.location = response.url;	
339
							pma.send('apk','shopclues','active',me,null);
339
							pma.send('apk','shopclues','active',me,null);
340
						}else{
340
						}else{
341
							pma.send('apk','shopclues','inactive',me,null);
341
							pma.send('apk','shopclues','inactive',me,null);
342
							$('#loadingModal').modal('hide');
342
							$('#loadingModal').modal('hide');