Line 8... |
Line 8... |
8 |
|
8 |
|
9 |
<?php echo wpsg_drawForm_Input('wpsg_mod_paypal_bezeichnung', __('Bezeichnung', 'wpsg'), $this->get_option('wpsg_mod_paypal_bezeichnung'), array('help' => 'wpsg_shippay_name')); ?>
|
9 |
<?php echo wpsg_drawForm_Input('wpsg_mod_paypal_bezeichnung', __('Bezeichnung', 'wpsg'), $this->get_option('wpsg_mod_paypal_bezeichnung'), array('help' => 'wpsg_shippay_name')); ?>
|
10 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_paypal_aktiv', __('Aktiv', 'wpsg'), $this->get_option('wpsg_mod_paypal_aktiv'), array('help' => 'wpsg_shippay_activ')); ?>
|
10 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_paypal_aktiv', __('Aktiv', 'wpsg'), $this->get_option('wpsg_mod_paypal_aktiv'), array('help' => 'wpsg_shippay_activ')); ?>
|
11 |
<?php echo wpsg_drawForm_Textarea('wpsg_mod_paypal_hint', __('Hinweistext', 'wpsg'), $this->get_option('wpsg_mod_paypal_hint'), array('help' => 'wpsg_shippay_hint')); ?>
|
11 |
<?php echo wpsg_drawForm_Textarea('wpsg_mod_paypal_hint', __('Hinweistext', 'wpsg'), $this->get_option('wpsg_mod_paypal_hint'), array('help' => 'wpsg_shippay_hint')); ?>
|
12 |
<br />
|
12 |
<br />
|
13 |
<?php echo wpsg_drawForm_Select('wpsg_mod_paypal_mode', __('Integrationsmodus', 'wpsg'), array('1' => __('REST API', 'wpsg')), $this->get_option('wpsg_mod_paypal_mode'), array('help' => 'wpsg_mod_paypal_mode')); ?>
|
- |
|
14 |
|
- |
|
15 |
<div class="wpsg_mod_paypal_mode_layer wpsg_mod_paypal_mode_0">
|
- |
|
16 |
|
- |
|
17 |
<?php echo wpsg_drawForm_Input('wpsg_mod_paypal_email', __('E-Mail (PayPal Konto)', 'wpsg'), $this->get_option('wpsg_mod_paypal_email'), array('help' => 'wpsg_mod_paypal_email')); ?>
|
- |
|
18 |
|
13 |
|
19 |
<div class="wpsg_hinweis">
|
14 |
<?php echo wpsg_drawForm_Input('wpsg_mod_paypal_clientid', __('Client ID', 'wpsg'), $this->get_option('wpsg_mod_paypal_clientid'), array('hint' => wpsg_translate('nohspc_'.__('Erhalten Sie im <a target="_blank" href="#1#">PayPal Developer Interface</a>.', 'wpsg'), 'https://developer.paypal.com/'), 'help' => 'wpsg_mod_paypal_clientid')); ?>
|
20 |
<?php echo __('Zur Anbindung an den PayPal Service wird <a href="https://www.paypalobjects.com/de_DE/html/IntegrationCenter/ic_pps_home.html">PayPal Starter</a> genutzt. Fortführende Details finden Sie im <a href="https://www.paypalobjects.com/de_DE/pdf/PayPal-Starter-Integrationshandbuch.pdf">Paypal Starter Integrationshandbuch.</a>', 'wpsg'); ?>
|
15 |
<?php echo wpsg_drawForm_Input('wpsg_mod_paypal_secret', __('Secret', 'wpsg'), $this->get_option('wpsg_mod_paypal_secret'), array('hint' => wpsg_translate('nohspc_'.__('Erhalten Sie im <a target="_blank" href="#1#">PayPal Developer Interface</a>.', 'wpsg'), 'https://developer.paypal.com/'), 'help' => 'wpsg_mod_paypal_secret')); ?>
|
- |
|
16 |
|
- |
|
17 |
<div class="wpsg_form_field ">
|
- |
|
18 |
<div class="wpsg_form_left">
|
21 |
<?php echo __('Im Integrationshandbuch erfahren Sie auch, wie Sie die Sandbox nutzen, um den Zahlungsverkehr zu testen.', 'wpsg'); ?>
|
19 |
<label for=""><?php echo __('Stornierung bei Statuswechsel', 'wpsg'); ?>:</label>
|
22 |
</div>
|
20 |
</div>
|
- |
|
21 |
<div class="wpsg_form_right">
|
- |
|
22 |
<a href="#" class="wpsg_mod_paypal_stornostate"><?php echo __('Bearbeiten', 'wpsg'); ?></a>
|
23 |
|
23 |
</div>
|
- |
|
24 |
<div class="wpsg_clear"></div>
|
24 |
</div>
|
25 |
</div>
|
25 |
|
- |
|
26 |
<div class="wpsg_mod_paypal_mode_layer wpsg_mod_paypal_mode_1">
|
26 |
<div class="wpsg_mod_paypal_stornostate_layer" style="display:none;">
|
27 |
|
27 |
|
28 |
<?php echo wpsg_drawForm_Input('wpsg_mod_paypal_clientid', __('Client ID', 'wpsg'), $this->get_option('wpsg_mod_paypal_clientid'), array('hint' => wpsg_translate('nohspc_'.__('Erhalten Sie im <a target="_blank" href="#1#">PayPal Developer Interface</a>.', 'wpsg'), 'https://developer.paypal.com/'), 'help' => 'wpsg_mod_paypal_clientid')); ?>
|
28 |
<?php foreach ($this->arStatus as $status_id => $status_label) { $arStornoStatus = (array)$this->get_option('wpsg_mod_paypal_stornostate'); ?>
|
29 |
<?php echo wpsg_drawForm_Input('wpsg_mod_paypal_secret', __('Secret', 'wpsg'), $this->get_option('wpsg_mod_paypal_secret'), array('hint' => wpsg_translate('nohspc_'.__('Erhalten Sie im <a target="_blank" href="#1#">PayPal Developer Interface</a>.', 'wpsg'), 'https://developer.paypal.com/'), 'help' => 'wpsg_mod_paypal_secret')); ?>
|
29 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_paypal_stornostate['.$status_id.']', __($status_label, 'wpsg'), $arStornoStatus[$status_id], array('labelright' => true)); ?>
|
30 |
|
- |
|
31 |
<div class="wpsg_form_field ">
|
- |
|
32 |
<div class="wpsg_form_left">
|
- |
|
33 |
<label for=""><?php echo __('Stornierung bei Statuswechsel', 'wpsg'); ?>:</label>
|
- |
|
34 |
</div>
|
- |
|
35 |
<div class="wpsg_form_right">
|
- |
|
36 |
<a href="#" class="wpsg_mod_paypal_stornostate"><?php echo __('Bearbeiten', 'wpsg'); ?></a>
|
- |
|
37 |
</div>
|
- |
|
38 |
<div class="wpsg_clear"></div>
|
- |
|
39 |
</div>
|
- |
|
40 |
<div class="wpsg_mod_paypal_stornostate_layer" style="display:none;">
|
- |
|
41 |
|
- |
|
42 |
<?php foreach ($this->arStatus as $status_id => $status_label) { $arStornoStatus = (array)$this->get_option('wpsg_mod_paypal_stornostate'); ?>
|
- |
|
43 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_paypal_stornostate['.$status_id.']', __($status_label, 'wpsg'), $arStornoStatus[$status_id], array('labelright' => true)); ?>
|
- |
|
44 |
<?php } ?>
|
30 |
<?php } ?>
|
45 |
|
31 |
|
46 |
<br />
|
32 |
<br />
|
47 |
|
- |
|
48 |
</div>
|
- |
|
49 |
|
33 |
|
50 |
<?php echo wpsg_drawForm_Input('', __('WebHook URL', 'wpsg'), $this->getUrl(wpsg_ShopController::URL_BASKET, 'wpsg_mod_paypal', 'webHook', array(), true), array('readonly' => true, 'help' => 'wpsg_mod_paypal_webhook_url')); ?>
|
- |
|
51 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_paypal_createwebhook', __('Beim speichern versuchen den WebHook anzumelden.', 'wpsg'), 0, array('labelright' => true, 'noDoubleDot' => true, 'help' => 'wpsg_mod_paypal_createwebhook')); ?>
|
- |
|
52 |
|
- |
|
53 |
</div>
|
34 |
</div>
|
54 |
|
35 |
|
- |
|
36 |
<?php echo wpsg_drawForm_Input('', __('WebHook URL', 'wpsg'), $this->getUrl(wpsg_ShopController::URL_BASKET, 'wpsg_mod_paypal', 'webHook', array(), true), array('readonly' => true, 'help' => 'wpsg_mod_paypal_webhook_url')); ?>
|
- |
|
37 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_paypal_createwebhook', __('Beim speichern versuchen den WebHook anzumelden.', 'wpsg'), 0, array('labelright' => true, 'noDoubleDot' => true, 'help' => 'wpsg_mod_paypal_createwebhook')); ?>
|
- |
|
38 |
|
55 |
<script type="text/javascript">/* <![CDATA[ */
|
39 |
<script type="text/javascript">/* <![CDATA[ */
|
56 |
|
40 |
|
57 |
jQuery(document).ready(function() {
|
41 |
jQuery(document).ready(function() {
|
58 |
|
42 |
|
59 |
jQuery('#wpsg_mod_paypal_mode').bind('change', function() {
|
- |
|
60 |
|
- |
|
61 |
jQuery('.wpsg_mod_paypal_mode_layer').hide();
|
- |
|
62 |
jQuery('.wpsg_mod_paypal_mode_' + jQuery(this).val()).show();
|
- |
|
63 |
|
- |
|
64 |
} ).change();
|
- |
|
65 |
|
- |
|
66 |
jQuery('.wpsg_mod_paypal_stornostate').bind('click', function() {
|
43 |
jQuery('.wpsg_mod_paypal_stornostate').bind('click', function() {
|
67 |
|
44 |
|
68 |
jQuery('.wpsg_mod_paypal_stornostate_layer').toggle();
|
45 |
jQuery('.wpsg_mod_paypal_stornostate_layer').toggle();
|
69 |
|
46 |
|
70 |
if (jQuery('.wpsg_mod_paypal_stornostate_layer').is(':visible')) jQuery(this).html('<?php echo __('Ausblenden', 'wpsg'); ?>');
|
47 |
if (jQuery('.wpsg_mod_paypal_stornostate_layer').is(':visible')) jQuery(this).html('<?php echo __('Ausblenden', 'wpsg'); ?>');
|