diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2016-01-14 14:55:36 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2016-01-14 14:55:36 +0000 |
| commit | ad405c7045c6e242080ec9d3ce4c9e586b517c4f (patch) | |
| tree | b41905f4d27f3eaaabd5bad3a39f8d3873540b46 /views/mods/mod_paypalapi | |
- Testweise 4
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5261 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_paypalapi')
18 files changed, 337 insertions, 0 deletions
diff --git a/views/mods/mod_paypalapi/basket_inner_prebutton.phtml b/views/mods/mod_paypalapi/basket_inner_prebutton.phtml new file mode 100644 index 0000000..223eaa3 --- /dev/null +++ b/views/mods/mod_paypalapi/basket_inner_prebutton.phtml @@ -0,0 +1,16 @@ +<?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 } ?>
\ No newline at end of file diff --git a/views/mods/mod_paypalapi/checkout_handlePayment.phtml b/views/mods/mod_paypalapi/checkout_handlePayment.phtml new file mode 100644 index 0000000..adb02e3 --- /dev/null +++ b/views/mods/mod_paypalapi/checkout_handlePayment.phtml @@ -0,0 +1,92 @@ +<?php
+
+ /**
+ * Template um die Zahlungsarten mittels PayPal PLUS im Checkout zu integrieren
+ */
+
+?>
+
+<?php if ($this->view['wpsg_mod_paypalapi']['show'] == 1) { ?>
+
+ <div class="wpsg_payment">
+ <h2><?php echo __('Zahlungsarten', 'wpsg'); ?></h2>
+ <div class="wpsg_payment_textwrap">
+ <p><?php echo __('Ihr PayPal Konto wird nach Bestellabschluß belastet.', 'wpsg'); ?></p>
+ </div>
+ </div>
+
+<?php } else if ($this->view['wpsg_mod_paypalapi']['show'] == 2) { ?>
+
+ <div class="wpsg_payment">
+ <h2><?php echo __('Zahlung erneut authorisieren', 'wpsg'); ?></h2>
+ <div class="wpsg_payment_textwrap">
+
+ <p><?php echo __('Der Betrag der Bestellung hat sich verändert. Sie müssen die Zahlung mit PayPal erneut authorisieren.', 'wpsg'); ?></p>
+ <p><?php echo __('Dies können Sie über folgenden Button erledigen oder nach Bestellabschluß. Alternativ können Sie unten auch eine andere Zahlungsart wählen.', 'wpsg'); ?>
+
+ <div class="wrap_paypalapi_expressbutton">
+ <a href="<?php echo $this->getUrl(wpsg_ShopController::URL_BASKET, 'wpsg_mod_paypalapi', 'startPayPalExpress'); ?>" title="<?php echo __('Direkt mit PayPal bezahlen', 'wpsg'); ?>"><img src="<?php echo $this->getRessourceURL('mods/mod_paypalapi/gfx/checkout-logo-small-de.png'); ?>" alt="<?php echo __('Direkt zu PayPal', 'wpsg'); ?>" /></a>
+ </div>
+ </div>
+ </div>
+
+<?php } else { ?>
+
+ <script src="https://www.paypalobjects.com/webstatic/ppplus/ppplus.min.js" type="text/javascript"></script>
+
+ <div class="wpsg_payment">
+
+ <h2><?php echo __('Zahlungsarten', 'wpsg'); ?></h2>
+
+ <div id="wpsg_ppplus"></div>
+
+ <?php if (wpsg_isSizedString($this->view['wpsg_mod_paypalapi']['error'])) { ?>
+ <div id="wpsg_error" class="published error">
+ <p><?php echo $this->view['wpsg_mod_paypalapi']['error']; ?>
+ </div>
+ <?php } ?>
+
+ </div>
+
+ <script type="application/javascript">/* <![CDATA[ */
+
+ var wpsg_mod_paypalapi_shipping_id = '<?php echo wpsg_getStr($this->view['basket']['checkout']['shipping']); ?>';
+
+ jQuery(document).ready(function() {
+
+ jQuery('input[name="wpsg_checkout2"], input[name="wpsg_checkout"]').hide();
+
+ jQuery('.wpsg_shipping input[type="radio"]').bind('change', function() {
+
+ if (jQuery(this).val() != wpsg_mod_paypalapi_shipping_id)
+ {
+
+ jQuery('input[name="wpsg_checkout2"]').hide()
+ jQuery('#wpsg_checkout_form').attr("action", "<?php echo $this->getUrl(wpsg_ShopController::URL_BASKET, 'wpsg_mod_paypalapi', 'ShippingSelect'); ?>").submit();
+
+ }
+
+ } );
+
+ } );
+
+ /**
+ * Wird vom PayPal PLUS IFrame aufgerufen wenn fertig geladen
+ */
+ function wpsg_mod_paypalapi_load()
+ {
+
+ jQuery('input[name="wpsg_checkout2"], input[name="wpsg_checkout"]').show().bind('click', function() {
+
+ var test = ppp.doContinue();
+ return false;
+
+ } );
+
+ }
+
+ <?php echo $this->render(WPSG_PATH_VIEW.'/mods/mod_paypalapi/paypalplus.phtml')?>
+
+ /* ]]> */</script>
+
+<?php } ?>
\ No newline at end of file diff --git a/views/mods/mod_paypalapi/gfx/checkout-logo-large-alt-de-2x.png b/views/mods/mod_paypalapi/gfx/checkout-logo-large-alt-de-2x.png Binary files differnew file mode 100644 index 0000000..01103c7 --- /dev/null +++ b/views/mods/mod_paypalapi/gfx/checkout-logo-large-alt-de-2x.png diff --git a/views/mods/mod_paypalapi/gfx/checkout-logo-large-alt-de.png b/views/mods/mod_paypalapi/gfx/checkout-logo-large-alt-de.png Binary files differnew file mode 100644 index 0000000..dfa010c --- /dev/null +++ b/views/mods/mod_paypalapi/gfx/checkout-logo-large-alt-de.png diff --git a/views/mods/mod_paypalapi/gfx/checkout-logo-large-de-2x.png b/views/mods/mod_paypalapi/gfx/checkout-logo-large-de-2x.png Binary files differnew file mode 100644 index 0000000..90e2c55 --- /dev/null +++ b/views/mods/mod_paypalapi/gfx/checkout-logo-large-de-2x.png diff --git a/views/mods/mod_paypalapi/gfx/checkout-logo-large-de.png b/views/mods/mod_paypalapi/gfx/checkout-logo-large-de.png Binary files differnew file mode 100644 index 0000000..30e09d2 --- /dev/null +++ b/views/mods/mod_paypalapi/gfx/checkout-logo-large-de.png diff --git a/views/mods/mod_paypalapi/gfx/checkout-logo-medium-alt-de-2x.png b/views/mods/mod_paypalapi/gfx/checkout-logo-medium-alt-de-2x.png Binary files differnew file mode 100644 index 0000000..cea1d84 --- /dev/null +++ b/views/mods/mod_paypalapi/gfx/checkout-logo-medium-alt-de-2x.png diff --git a/views/mods/mod_paypalapi/gfx/checkout-logo-medium-alt-de.png b/views/mods/mod_paypalapi/gfx/checkout-logo-medium-alt-de.png Binary files differnew file mode 100644 index 0000000..7cba88c --- /dev/null +++ b/views/mods/mod_paypalapi/gfx/checkout-logo-medium-alt-de.png diff --git a/views/mods/mod_paypalapi/gfx/checkout-logo-medium-de-2x.png b/views/mods/mod_paypalapi/gfx/checkout-logo-medium-de-2x.png Binary files differnew file mode 100644 index 0000000..236189c --- /dev/null +++ b/views/mods/mod_paypalapi/gfx/checkout-logo-medium-de-2x.png diff --git a/views/mods/mod_paypalapi/gfx/checkout-logo-medium-de.png b/views/mods/mod_paypalapi/gfx/checkout-logo-medium-de.png Binary files differnew file mode 100644 index 0000000..17ff618 --- /dev/null +++ b/views/mods/mod_paypalapi/gfx/checkout-logo-medium-de.png diff --git a/views/mods/mod_paypalapi/gfx/checkout-logo-small-alt-de-2x.png b/views/mods/mod_paypalapi/gfx/checkout-logo-small-alt-de-2x.png Binary files differnew file mode 100644 index 0000000..c254d76 --- /dev/null +++ b/views/mods/mod_paypalapi/gfx/checkout-logo-small-alt-de-2x.png diff --git a/views/mods/mod_paypalapi/gfx/checkout-logo-small-alt-de.png b/views/mods/mod_paypalapi/gfx/checkout-logo-small-alt-de.png Binary files differnew file mode 100644 index 0000000..21119a7 --- /dev/null +++ b/views/mods/mod_paypalapi/gfx/checkout-logo-small-alt-de.png diff --git a/views/mods/mod_paypalapi/gfx/checkout-logo-small-de-2x.png b/views/mods/mod_paypalapi/gfx/checkout-logo-small-de-2x.png Binary files differnew file mode 100644 index 0000000..bf4bc4c --- /dev/null +++ b/views/mods/mod_paypalapi/gfx/checkout-logo-small-de-2x.png diff --git a/views/mods/mod_paypalapi/gfx/checkout-logo-small-de.png b/views/mods/mod_paypalapi/gfx/checkout-logo-small-de.png Binary files differnew file mode 100644 index 0000000..66efb82 --- /dev/null +++ b/views/mods/mod_paypalapi/gfx/checkout-logo-small-de.png diff --git a/views/mods/mod_paypalapi/order_done.phtml b/views/mods/mod_paypalapi/order_done.phtml new file mode 100644 index 0000000..871da98 --- /dev/null +++ b/views/mods/mod_paypalapi/order_done.phtml @@ -0,0 +1,31 @@ +<?php
+
+ /**
+ * Dieses Template wird nach einer Bestellung vo der Weiterleitung zur PayPal Zahlung angezeigt
+ */
+
+?>
+
+<?php if (wpsg_isSizedString($this->view['wpsg_mod_paypalapi']['done'], '2')) { ?>
+
+ <p><?php echo __('Zahlung wurde erfolgreich durchgeführt.', 'wpsg'); ?></p>
+
+<?php } else if (wpsg_isSizedString($this->view['wpsg_mod_paypalapi']['done'], '1')) { ?>
+
+ <p><?php echo __('Zahlung wurde bereits ausgeführt.', 'wpsg'); ?></p>
+
+<?php } else { ?>
+
+ <?php echo __('Zahlung mittels der folgenden Zahlungsoption abschließen','wpsg'); ?>
+
+ <script src="https://www.paypalobjects.com/webstatic/ppplus/ppplus.min.js" type="text/javascript"></script>
+ <div id="wpsg_ppplus"></div>
+
+ <script type="application/javascript">/* <![CDATA[ */
+
+ <?php $this->view['wpsg_order_done'] = true; ?>
+ <?php $this->render(WPSG_PATH_VIEW.'/mods/mod_paypalapi/paypalplus.phtml'); ?>
+
+ /* ]]> */</script>
+
+<?php } ?>
\ No newline at end of file diff --git a/views/mods/mod_paypalapi/order_view_afterpayment.phtml b/views/mods/mod_paypalapi/order_view_afterpayment.phtml new file mode 100644 index 0000000..fdd522a --- /dev/null +++ b/views/mods/mod_paypalapi/order_view_afterpayment.phtml @@ -0,0 +1,40 @@ +<?php
+
+ /**
+ * Template für die Integration der PayPal Zahlungsart in die Bestellverwaltung
+ */
+
+?>
+
+<?php if (wpsg_isSizedString($this->view['oOrder']->getMeta('wpsg_mod_paypalapi_paymentid'))) { ?>
+
+ <div class="wpsg_form_field ">
+ <div class="wpsg_form_left">
+ <label for=""><?php echo __('PaymentID', 'wpsg'); ?>: [<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&noheader=1&mod=wpsg_mod_paypalapi&do=refresh&edit_id=<?php echo $this->view['oOrder']->id; ?>"><?php echo __('Status Aktualisieren', 'wpsg'); ?></a>]</label>
+ </div>
+ <div class="wpsg_form_right">
+ <p class="" id=""><?php echo wpsg_translate(__('#1# (#2#)', 'wpsg'), $this->view['oOrder']->getMeta('wpsg_mod_paypalapi_paymentid'), $this->view['oOrder']->getMeta('wpsg_mod_paypalapi_paymentstate')); ?></p>
+ </div>
+ <div class="wpsg_clear"></div>
+ </div>
+
+<?php } ?>
+
+<?php if (wpsg_isSizedString($this->view['oOrder']->getMeta('wpsg_mod_paypalapi_saleid'))) { ?>
+
+ <div class="wpsg_form_field ">
+ <div class="wpsg_form_left">
+ <label for=""><?php echo __('SaleID', 'wpsg'); ?>:</label>
+ </div>
+ <div class="wpsg_form_right">
+ <p class="" id=""><?php echo wpsg_translate(__('#1# (#2#)', 'wpsg'), $this->view['oOrder']->getMeta('wpsg_mod_paypalapi_saleid'), $this->view['oOrder']->getMeta('wpsg_mod_paypalapi_salestate')); ?></p>
+ </div>
+ <div class="wpsg_clear"></div>
+ </div>
+
+ <?php if ($this->view['oOrder']->getMeta('wpsg_mod_paypalapi_salestate') != 'refunded') { ?>
+ <br />
+ <a onclick="return confirm('<?php echo __('Sind Sie sich sicher?', 'wpsg'); ?>');" class="button" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&noheader=1&mod=wpsg_mod_paypalapi&do=refund&edit_id=<?php echo $this->view['data']['id']; ?>"><?php echo __('Zahlung rückerstatten (Refund Call)', 'wpsg'); ?></a>
+ <?php } ?>
+
+<?php } ?>
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 diff --git a/views/mods/mod_paypalapi/settings_edit.phtml b/views/mods/mod_paypalapi/settings_edit.phtml new file mode 100644 index 0000000..7efb3d2 --- /dev/null +++ b/views/mods/mod_paypalapi/settings_edit.phtml @@ -0,0 +1,129 @@ +<?php
+
+ /**
+ * Template für die Einstellungen des PayPal API Moduls
+ */
+
+?>
+
+<?php echo wpsg_drawForm_Input('wpsg_mod_paypalapi_clientid', __('Client ID', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_clientid'), array('hint' => __('Erhalten Sie im PayPal Account.', 'wpsg'), 'help' => 'wpsg_mod_paypal_clientid', 'hint' => wpsg_translate('nohspc_'.__('Erhalten Sie im <a target="_blank" href="#1#">PayPal Developer Interface</a>.', 'wpsg'), 'https://developer.paypal.com/'))); ?>
+<?php echo wpsg_drawForm_Input('wpsg_mod_paypalapi_secret', __('Secret', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_secret'), array('hint' => __('Erhalten Sie im PayPal Account.', 'wpsg'), 'help' => 'wpsg_mod_paypal_secret', 'hint' => wpsg_translate('nohspc_'.__('Erhalten Sie im <a target="_blank" href="#1#">PayPal Developer Interface</a>.', 'wpsg'), 'https://developer.paypal.com/'))); ?>
+<?php echo wpsg_drawForm_Checkbox('wpsg_mod_paypalapi_sandbox', __('Sandbox', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_sandbox'), array('help' => 'wpsg_mod_paypal_sandbox')); ?>
+
+<div class="wpsg_mod_sandbox_layer" style="display:none;">
+
+ <?php echo wpsg_drawForm_Input('wpsg_mod_paypalapi_sandbox_clientid', __('Client ID (Sandbox)', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_sandbox_clientid'), array('hint' => __('Erhalten Sie im PayPal Account.', 'wpsg'), 'help' => 'wpsg_mod_paypal_clientid')); ?>
+ <?php echo wpsg_drawForm_Input('wpsg_mod_paypalapi_sandbox_secret', __('Secret (Sandbox)', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_sandbox_secret'), array('hint' => __('Erhalten Sie im PayPal Account.', 'wpsg'), 'help' => 'wpsg_mod_paypal_secret')); ?>
+
+ <br />
+
+</div>
+
+<br />
+
+<?php echo wpsg_drawForm_Input('', __('WebHook URL', 'wpsg'), $this->getUrl(wpsg_ShopController::URL_BASKET, 'wpsg_mod_paypalapi', 'webHook', array(), true), array('readonly' => true, 'help' => 'wpsg_mod_paypal_webhook_url')); ?>
+<?php echo wpsg_drawForm_Checkbox('wpsg_mod_paypalapi_create', __('Beim speichern versuchen den WebHook anzumelden.', 'wpsg'), 0, array('labelright' => true, 'noDoubleDot' => true, 'help' => 'wpsg_mod_paypal_createwebhook')); ?>
+<?php echo wpsg_drawForm_Checkbox('wpsg_mod_paypalapi_webhook_log', __('WebHook Anfragen protokollieren', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_webhook_log'), array('labelright' => true)); ?>
+<div class="layer_wpsg_mod_paypalapi_webhook_log layer_wpsg_mod_paypalapi_webhook_log_1">
+ <?php echo wpsg_drawForm_Input('wpsg_mod_paypalapi_webhook_logfile', '', $this->get_option('wpsg_mod_paypalapi_webhook_logfile'), array('hint' => __('Absoluter Pfad zur Protokolldatei, Schreibrechte beachten.', 'wpsg'))); ?>
+</div>
+
+<br />
+
+<?php echo wpsg_drawForm_Input('wpsg_mod_paypalapi_gebuehr', __('Gebühr/Rabatt', 'wpsg'), wpsg_ff($this->get_option('wpsg_mod_paypalapi_gebuehr'), true), array('unit' => $this->get_option('wpsg_currency').' / %', 'help' => 'wpsg_shippay_gebuehr')); ?>
+<?php echo wpsg_drawForm_Select('wpsg_mod_paypalapi_mwst', __('Mehrwertsteuersatz', 'wpsg'), wpsg_tax_groups(), $this->get_option('wpsg_mod_paypalapi_mwst'), array('help' => 'wpsg_shippay_mwst')); ?>
+<?php echo wpsg_drawForm_Checkbox('wpsg_mod_paypalapi_mwstland', __('Keine MwSt. wenn Land steuerfrei', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_mwstland'), array('help' => 'wpsg_shippay_mwstland')); ?>
+
+<br />
+
+<div class="wpsg_form_field ">
+ <div class="wpsg_form_left">
+ <label for=""><?php echo __('Stornierung bei Statuswechsel', 'wpsg'); ?>:</label>
+ </div>
+ <div class="wpsg_form_right">
+ <a href="#" class="wpsg_mod_paypalapi_stornostate"><?php echo __('Bearbeiten', 'wpsg'); ?></a>
+ </div>
+ <div class="wpsg_clear"></div>
+</div>
+<div class="wpsg_mod_paypalapi_stornostate_layer" style="display:none;">
+
+ <?php foreach ($this->arStatus as $status_id => $status_label) { $arStornoStatus = (array)$this->get_option('wpsg_mod_paypalapi_stornostate'); ?>
+ <?php echo wpsg_drawForm_Checkbox('wpsg_mod_paypalapi_stornostate['.$status_id.']', __($status_label, 'wpsg'), $arStornoStatus[$status_id], array('labelright' => true)); ?>
+ <?php } ?>
+
+ <br />
+
+</div>
+
+<br />
+
+<?php echo wpsg_drawForm_Select('wpsg_page_mod_paypalapi_success', __('Erfolgsseite', 'wpsg'), $this->view['pages'], $this->get_option('wpsg_page_mod_paypalapi_success'), array('help' => 'wpsg_page_mod_paypal_success')); ?>
+<?php echo wpsg_drawForm_Select('wpsg_page_mod_paypalapi_error', __('Fehlerseite', 'wpsg'), $this->view['pages'], $this->get_option('wpsg_page_mod_paypalapi_error'), array('help' => 'wpsg_page_mod_paypal_error')); ?>
+
+<br />
+
+<?php echo wpsg_drawForm_Checkbox('wpsg_mod_paypalapi_aktiv', __('PayPal für neue Bestellungen erlauben', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_aktiv'), array('help' => 'wpsg_shippay_activ')); ?>
+<?php echo wpsg_drawForm_Checkbox('wpsg_mod_paypalapi_paypalexpress', __('PayPal Express aktivieren (Button im Warenkorb)', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_paypalexpress'), array('help' => 'wpsg_mod_paypalapi_paypalexpress')); ?>
+<?php echo wpsg_drawForm_Checkbox('wpsg_mod_paypalapi_plus_aktiv', __('PayPal Plus aktivieren', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_plus_aktiv'), array('help' => 'wpsg_mod_paypalapi_plus_aktiv')); ?>
+<?php echo wpsg_drawForm_Checkbox('wpsg_mod_paypalapi_paypalexpress_details', __('Warenkorbdetails übertragen', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_paypalexpress_details'), array('help' => 'wpsg_mod_paypalapi_paypalexpress_details')); ?>
+
+<br />
+<?php echo wpsg_drawForm_Input('wpsg_mod_paypalapi_experience_label', __('Bezeichnung im PayPal Zahlungsinterface', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_experience_label'), array('help' => 'wpsg_mod_paypalapi_experience_label', 'hint' => __('Max. 127 Zeichen', 'wpsg'))); ?>
+<?php echo wpsg_drawForm_Input('wpsg_mod_paypalapi_experience_logo', __('URL für ein Logo im PayPal Zahlungsinterface', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_experience_logo'), array('help' => 'wpsg_mod_paypalapi_experience_logo', 'hint' => __('gif|png|jpg, Max. 190x60', 'wpsg'))); ?>
+<?php echo wpsg_drawForm_Select('wpsg_mod_paypalapi_experience_locale_code', __('Sprache im PayPal Zahlungsinterface', 'wpsg'), array(
+ 'DE' => __('Deutsch', 'wpsg'),
+ 'GB' => __('Englisch', 'wpsg'),
+ 'FR' => __('Französisch', 'wpsg')
+), $this->get_option('wpsg_mod_paypalapi_experience_locale_code'), array('help' => 'wpsg_mod_paypalapi_experience_locale_code')); ?>
+<br />
+
+
+<?php echo wpsg_drawForm_Input('wpsg_mod_paypalapi_paypalexpress_name', __('Bezeichnung', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_paypalexpress_name'), array('help' => 'wpsg_shippay_name')); ?>
+<?php echo wpsg_drawForm_Input('wpsg_mod_paypalapi_paypalexpress_subject', __('Betreff für Zahlung', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_paypalexpress_subject'), array('help' => 'wpsg_mod_paypal_subject')); ?>
+<?php echo wpsg_drawForm_Textarea('wpsg_mod_paypalapi_plus_hint', __('Hinweistext', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_plus_hint'), array('help' => 'wpsg_shippay_hint')); ?>
+
+<script type="text/javascript">/* <![CDATA[ */
+
+ jQuery(document).ready(function() {
+
+ jQuery('#wpsg_mod_paypalapi_webhook_log').bind('change', function() {
+
+ jQuery('.layer_wpsg_mod_paypalapi_webhook_log').hide();
+
+ if (jQuery(this).is(':checked'))
+ {
+
+ jQuery('.layer_wpsg_mod_paypalapi_webhook_log_1').show();
+
+ }
+
+ } ).change();
+
+ jQuery('#wpsg_mod_paypalapi_sandbox').bind('change', function() {
+
+ if (jQuery(this).is(':checked')) jQuery('.wpsg_mod_sandbox_layer').show();
+ else jQuery('.wpsg_mod_sandbox_layer').hide();
+
+ } ).change();
+
+ jQuery('#wpsg_mod_paypalapi_plus_aktiv').bind('change', function() {
+
+ if (jQuery(this).is(':checked')) jQuery('.wpsg_mod_paypalapi_plus_aktiv').show();
+ else jQuery('.wpsg_mod_paypalapi_plus_aktiv').hide();
+
+ } ).change();
+
+ jQuery('.wpsg_mod_paypalapi_stornostate').bind('click', function() {
+
+ jQuery('.wpsg_mod_paypalapi_stornostate_layer').toggle();
+
+ if (jQuery('.wpsg_mod_paypalapi_stornostate_layer').is(':visible')) jQuery(this).html('<?php echo __('Ausblenden', 'wpsg'); ?>');
+ else jQuery(this).html('<?php echo __('Bearbeiten', 'wpsg'); ?>');
+
+ return false;
+
+ } );
+
+ } );
+
+/* ]]> */</script>
\ No newline at end of file |
