summaryrefslogtreecommitdiff
path: root/views/mods/mod_paypalapi/paypalplus.phtml
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2016-01-14 14:55:36 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2016-01-14 14:55:36 +0000
commitad405c7045c6e242080ec9d3ce4c9e586b517c4f (patch)
treeb41905f4d27f3eaaabd5bad3a39f8d3873540b46 /views/mods/mod_paypalapi/paypalplus.phtml
- Testweise 4
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5261 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_paypalapi/paypalplus.phtml')
-rw-r--r--views/mods/mod_paypalapi/paypalplus.phtml29
1 files changed, 29 insertions, 0 deletions
diff --git a/views/mods/mod_paypalapi/paypalplus.phtml b/views/mods/mod_paypalapi/paypalplus.phtml
new file mode 100644
index 0000000..2cecd3b
--- /dev/null
+++ b/views/mods/mod_paypalapi/paypalplus.phtml
@@ -0,0 +1,29 @@
+<?php
+
+ /**
+ * JS Teil für den PayPal PLUS Teil
+ */
+
+ // https://www.paypalobjects.com/webstatic/de_DE/downloads/PayPal-PLUS-IntegrationGuide.pdf
+
+?>
+
+ var ppp = PAYPAL.apps.PPP({
+ "approvalUrl": "<?php echo $this->view['wpsg_mod_paypalapi']['approval_url']; ?>",
+ "language": "de_DE",
+ "preselection": "<?php echo (($_SESSION['wpsg']['checkout']['payment'] == '10')?'paypal':'none')?>",
+ "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']; ?>",
+ } );
+
+ \ No newline at end of file