Line 11... |
Line 11... |
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",
|
16 |
<?php if ($this->hasMod('wpsg_mod_onepagecheckout') && get_the_id() == $this->get_option('wpsg_mod_onepagecheckout_page')) { ?>
|
16 |
<?php if ($this->hasMod('wpsg_mod_onepagecheckout') && wpsg_get_the_id() == $this->get_option('wpsg_mod_onepagecheckout_page')) { ?>
|
17 |
"onContinue": function(event) {
|
17 |
"onContinue": function(event) {
|
18 |
|
18 |
|
19 |
jQuery('#wpsg_basket_form').attr('target', 'wpsg_hiddenTarget');
|
19 |
jQuery('#wpsg_basket_form').attr('target', 'wpsg_hiddenTarget');
|
20 |
jQuery('#wpsg_basket_form').append('<input name="wpsg_checkout" value="ppp" id="wpsg_hidden_action" />');
|
20 |
jQuery('#wpsg_basket_form').append('<input name="wpsg_checkout" value="ppp" id="wpsg_hidden_action" />');
|
21 |
jQuery('#wpsg_basket_form').append('<input name="wpsg[checkout][payment]" value="ppp" id="wpsg_hidden_payment" />');
|
21 |
jQuery('#wpsg_basket_form').append('<input name="wpsg[checkout][payment]" value="ppp" id="wpsg_hidden_payment" />');
|