Subversion Repositories wpShopGermany4

Rev

Rev 5020 | Rev 5233 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php

        /**
         * JS Teil für den PayPal PLUS Teil
         */
         
        // https://www.paypalobjects.com/webstatic/de_DE/downloads/PayPal-PLUS-IntegrationGuide.pdf
alert(<?php echo json_encode($this->view['wpsg_mod_paypalapi']['ThirdPartyPayment']); ?>);
?>

        var ppp = PAYPAL.apps.PPP({
                "approvalUrl": "<?php echo $this->view['wpsg_mod_paypalapi']['approval_url']; ?>",
                "language": "de_DE",
                "preselection": "paypal",
                "country": "DE",        
                <?php if ($this->view['wpsg_order_done'] !== true) { ?>
                "onLoad": function() { if (typeof wpsg_mod_paypalapi_load == 'function') wpsg_mod_paypalapi_load(); }, 
                "buttonLocation": "outside",
                "disableContinue": "wpsg_checkout2button",
                "enableContinue": "wpsg_checkout2button",
                <?php if (wpsg_isSizedArray($this->view['wpsg_mod_paypalapi']['ThirdPartyPayment'])) { ?>
                "thirdPartyPaymentMethods": <?php echo json_encode($this->view['wpsg_mod_paypalapi']['ThirdPartyPayment']); ?>,
                <?php } ?>              
                <?php } ?>
                "placeholder": "wpsg_ppplus",
                "mode": "<?php echo $this->view['wpsg_mod_paypalapi']['mode']; ?>",
        } );