1067 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* Templatedatei für die Einstellungen des PayPal Moduls
|
|
|
5 |
*/
|
|
|
6 |
|
|
|
7 |
?>
|
|
|
8 |
|
4855 |
daniel |
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')); ?>
|
|
|
11 |
<?php echo wpsg_drawForm_Textarea('wpsg_mod_paypal_hint', __('Hinweistext', 'wpsg'), $this->get_option('wpsg_mod_paypal_hint'), array('help' => 'wpsg_shippay_hint')); ?>
|
7518 |
daniel |
12 |
|
4839 |
daniel |
13 |
<br />
|
4845 |
daniel |
14 |
|
7874 |
daniel |
15 |
<?php echo wpsg_drawForm_Input('wpsg_mod_paypal_clientid', __('Client ID', 'wpsg'), $this->get_option('wpsg_mod_paypal_clientid'), array('hint' => wpsg_translate(__('Erhalten Sie im <a target="_blank" href="#1#">PayPal Developer Interface</a>.', 'wpsg'), 'https://developer.paypal.com/'), 'help' => 'wpsg_mod_paypal_clientid')); ?>
|
|
|
16 |
<?php echo wpsg_drawForm_Input('wpsg_mod_paypal_secret', __('Secret', 'wpsg'), $this->get_option('wpsg_mod_paypal_secret'), array('hint' => wpsg_translate(__('Erhalten Sie im <a target="_blank" href="#1#">PayPal Developer Interface</a>.', 'wpsg'), 'https://developer.paypal.com/'), 'help' => 'wpsg_mod_paypal_secret')); ?>
|
6782 |
daniel |
17 |
|
|
|
18 |
<div class="wpsg_form_field ">
|
|
|
19 |
<div class="wpsg_form_left">
|
|
|
20 |
<label for=""><?php echo __('Stornierung bei Statuswechsel', 'wpsg'); ?>:</label>
|
4845 |
daniel |
21 |
</div>
|
6782 |
daniel |
22 |
<div class="wpsg_form_right">
|
|
|
23 |
<a href="#" class="wpsg_mod_paypal_stornostate"><?php echo __('Bearbeiten', 'wpsg'); ?></a>
|
|
|
24 |
</div>
|
|
|
25 |
<div class="wpsg_clear"></div>
|
4839 |
daniel |
26 |
</div>
|
6782 |
daniel |
27 |
<div class="wpsg_mod_paypal_stornostate_layer" style="display:none;">
|
4844 |
daniel |
28 |
|
6782 |
daniel |
29 |
<?php foreach ($this->arStatus as $status_id => $status_label) { $arStornoStatus = (array)$this->get_option('wpsg_mod_paypal_stornostate'); ?>
|
|
|
30 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_paypal_stornostate['.$status_id.']', __($status_label, 'wpsg'), $arStornoStatus[$status_id], array('labelright' => true)); ?>
|
|
|
31 |
<?php } ?>
|
4844 |
daniel |
32 |
|
6782 |
daniel |
33 |
<br />
|
|
|
34 |
|
4839 |
daniel |
35 |
</div>
|
|
|
36 |
|
6782 |
daniel |
37 |
<?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')); ?>
|
|
|
38 |
<?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')); ?>
|
|
|
39 |
|
4839 |
daniel |
40 |
<script type="text/javascript">/* <![CDATA[ */
|
|
|
41 |
|
|
|
42 |
jQuery(document).ready(function() {
|
|
|
43 |
|
4844 |
daniel |
44 |
jQuery('.wpsg_mod_paypal_stornostate').bind('click', function() {
|
|
|
45 |
|
|
|
46 |
jQuery('.wpsg_mod_paypal_stornostate_layer').toggle();
|
|
|
47 |
|
|
|
48 |
if (jQuery('.wpsg_mod_paypal_stornostate_layer').is(':visible')) jQuery(this).html('<?php echo __('Ausblenden', 'wpsg'); ?>');
|
|
|
49 |
else jQuery(this).html('<?php echo __('Bearbeiten', 'wpsg'); ?>');
|
|
|
50 |
|
|
|
51 |
return false;
|
|
|
52 |
|
|
|
53 |
} );
|
4839 |
daniel |
54 |
|
|
|
55 |
} );
|
|
|
56 |
|
|
|
57 |
/* ]]> */</script>
|
|
|
58 |
|
|
|
59 |
<br />
|
7518 |
daniel |
60 |
|
4855 |
daniel |
61 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_paypal_sandbox', __('Sandbox Modus', 'wpsg'), $this->get_option('wpsg_mod_paypal_sandbox'), array('help' => 'wpsg_mod_paypal_sandbox')); ?>
|
|
|
62 |
<?php echo wpsg_drawForm_Input('wpsg_mod_paypal_subject', __('Betreff der Überweisung', 'wpsg'), $this->get_option('wpsg_mod_paypal_subject'), array('help' => 'wpsg_mod_paypal_subject')); ?>
|
1067 |
daniel |
63 |
|
1406 |
daniel |
64 |
<br />
|
7518 |
daniel |
65 |
|
4855 |
daniel |
66 |
<?php echo wpsg_drawForm_Input('wpsg_mod_paypal_gebuehr', __('Gebühr/Rabatt', 'wpsg'), wpsg_ff($this->get_option('wpsg_mod_paypal_gebuehr'), true), array('help' => 'wpsg_shippay_gebuehr', 'unit' => $this->get_option('wpsg_currency').' / %')); ?>
|
|
|
67 |
<?php echo wpsg_drawForm_Select('wpsg_mod_paypal_mwst', __('Mehrwertsteuersatz', 'wpsg'), wpsg_tax_groups(), $this->get_option('wpsg_mod_paypal_mwst'), array('help' => 'wpsg_shippay_mwst')); ?>
|
|
|
68 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_paypal_mwstland', __('Keine MwSt. wenn Land steuerfrei', 'wpsg'), $this->get_option('wpsg_mod_paypal_mwstland'), array('help' => 'wpsg_shippay_mwstland')); ?>
|
1067 |
daniel |
69 |
|
1406 |
daniel |
70 |
<br />
|
7518 |
daniel |
71 |
|
5382 |
daniel |
72 |
<?php echo wpsg_drawForm_Input('wpsg_mod_paypal_currency', __('Währungscode (Standard: EUR)', 'wpsg'), $this->get_option('wpsg_mod_paypal_currency'), array('help' => 'wpsg_mod_paypal_currency')); ?>
|
|
|
73 |
<?php echo wpsg_drawForm_Select('wpsg_mod_paypal_language', __('Sprache im PayPal Interface', 'wpsg'), array('DE' => __('Deutsch', 'wpsg'), 'US' => __('Englisch', 'wpsg'), 'FR' => __('Französisch', 'wpsg')), $this->get_option('wpsg_mod_paypal_language'), array('help' => 'wpsg_mod_paypal_language')); ?>
|
3582 |
daniel |
74 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_paypal_autostart', __('Zahlung sofort starten', 'wpsg'), $this->get_option('wpsg_mod_paypal_autostart'), array('help' => 'wpsg_shippay_paystart')); ?>
|
4855 |
daniel |
75 |
<?php echo wpsg_drawForm_Select('wpsg_page_mod_paypal_success', __('Erfolgsseite', 'wpsg'), $this->view['pages'], $this->get_option('wpsg_page_mod_paypal_success'), array('help' => 'wpsg_page_mod_paypal_success')); ?>
|
|
|
76 |
<?php echo wpsg_drawForm_Select('wpsg_page_mod_paypal_error', __('Fehlerseite', 'wpsg'), $this->view['pages'], $this->get_option('wpsg_page_mod_paypal_error'), array('help' => 'wpsg_page_mod_paypal_error')); ?>
|