Rev 5261 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<?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 } ?>