blob: 8c576ba2790e4f1e0aeb94b0ea41ef9f79fdbd19 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
<?php
/**
* Template für die Integration in den Warenkorb der PayPal API
*/
?>
<?php if (wpsg_isSizedInt($this->get_option('wpsg_mod_paypalapi_paypalexpress'))) { ?>
<div class="wpsg_mod_paypalapi_button_wrap">
<button type="submit" name="wpsg_mod_submit" value="wpsg_mod_paypalapi" class="wpsg_mod_paypalapi_button">
<img src="<?php echo $this->getRessourceURL('mods/mod_paypalapi/gfx/checkout-logo-small-de.png'); ?>" alt="<?php echo __('Direkt zu PayPal', 'wpsg'); ?>" />
</button>
<div class="wpsg_clear"></div>
</div>
<?php } ?>
<?php if (wpsg_isSizedInt($this->get_option('wpsg_mod_paypalapi_plus_basket'))) { ?>
<h2><?php echo __('Zahlungsart wählen', 'wpsg'); ?></h2>
<script src="https://www.paypalobjects.com/webstatic/ppplus/ppplus.min.js" type="text/javascript"></script>
<div id="wpsg_ppplus" style="padding-right:0px;"></div>
<script type="application/javascript">
/**
* Wird vom PayPal PLUS IFrame aufgerufen wenn fertig geladen
*/
function wpsg_mod_paypalapi_load()
{
jQuery('#wpsg_basket_submit').on('click', function(event) {
PAYPAL.apps.PPP.doCheckout();
event.stopPropagation();
return false;
} );
}
<?php $this->render(WPSG_PATH_VIEW.'/mods/mod_paypalapi/paypalplus.phtml'); ?>
</script>
<?php } ?>
|