Subversion Repositories wpShopGermany4

Rev

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

Rev 6619 Rev 7214
Line 5... Line 5...
5
	 */
5
	 */
6
	 
6
	 
7
	// https://www.paypalobjects.com/webstatic/de_DE/downloads/PayPal-PLUS-IntegrationGuide.pdf
7
	// https://www.paypalobjects.com/webstatic/de_DE/downloads/PayPal-PLUS-IntegrationGuide.pdf
8
 
8
 
9
?>
9
?>
10
 
10
 
11
	var ppp = PAYPAL.apps.PPP({
11
	var ppp = PAYPAL.apps.PPP({
12
		"approvalUrl": "<?php echo $this->view['wpsg_mod_paypalapi']['approval_url']; ?>",
12
		"approvalUrl": "<?php echo $this->view['wpsg_mod_paypalapi']['approval_url']; ?>",
13
		"language": "de_DE",
13
		"language": "de_DE",
14
		"preselection": "<?php echo (($_SESSION['wpsg']['checkout']['payment'] == '10')?'paypal':'none')?>",
14
		"preselection": "<?php echo (($_SESSION['wpsg']['checkout']['payment'] == '10')?'paypal':'none')?>",
15
		"country": "DE",
15
		"country": "DE",
Line 29... Line 29...
29
		},
29
		},
30
		<?php } ?>
30
		<?php } ?>
31
		<?php if ($this->view['wpsg_order_done'] !== true) { ?>
31
		<?php if ($this->view['wpsg_order_done'] !== true) { ?>
32
		"onLoad": function() { if (typeof wpsg_mod_paypalapi_load == 'function') wpsg_mod_paypalapi_load(); }, 
32
		"onLoad": function() { if (typeof wpsg_mod_paypalapi_load == 'function') wpsg_mod_paypalapi_load(); }, 
33
		"buttonLocation": "outside",
33
		"buttonLocation": "outside",
34
		"disableContinue": "wpsg_checkout2button",
34
		"disableContinue": "<?php echo $this->view['wpsg_mod_paypalapi']['disableContinue']; ?>",
35
		"enableContinue": "wpsg_checkout2button",
35
		"enableContinue": "<?php echo $this->view['wpsg_mod_paypalapi']['enableContinue']; ?>",
36
		<?php if (wpsg_isSizedArray($this->view['wpsg_mod_paypalapi']['ThirdPartyPayment'])) { ?>
36
		<?php if (wpsg_isSizedArray($this->view['wpsg_mod_paypalapi']['ThirdPartyPayment'])) { ?>
37
		"thirdPartyPaymentMethods": <?php echo json_encode($this->view['wpsg_mod_paypalapi']['ThirdPartyPayment']); ?>,
37
		"thirdPartyPaymentMethods": <?php echo json_encode($this->view['wpsg_mod_paypalapi']['ThirdPartyPayment']); ?>,
38
		<?php } ?>		
38
		<?php } ?>		
39
		<?php } ?>
39
		<?php } ?>
40
		"placeholder": "wpsg_ppplus",
40
		"placeholder": "wpsg_ppplus",