Subversion Repositories wpShopGermany4

Rev

Rev 5261 | Details | Compare with Previous | Last modification | View Log | RSS feed

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