Line 4... |
Line 4... |
4 |
* Template für die Einstellungen des PayPal API Moduls
|
4 |
* Template für die Einstellungen des PayPal API Moduls
|
5 |
*/
|
5 |
*/
|
6 |
|
6 |
|
7 |
?>
|
7 |
?>
|
8 |
|
8 |
|
- |
|
9 |
<?php echo wpsg_drawForm_Select('wpsg_mod_paypalapi_version', __('API Version', 'wpsg'), ['v1' => 'V1', 'v2' => 'V2'], $this->get_option('wpsg_mod_paypalapi_version'), []); ?>
|
9 |
<?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/'))); ?>
|
10 |
<?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/'))); ?>
|
10 |
<?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/'))); ?>
|
11 |
<?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/'))); ?>
|
11 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_paypalapi_sandbox', __('Sandbox', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_sandbox'), array('help' => 'wpsg_mod_paypal_sandbox')); ?>
|
12 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_paypalapi_sandbox', __('Sandbox', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_sandbox'), array('help' => 'wpsg_mod_paypal_sandbox')); ?>
|
12 |
|
13 |
|
13 |
<div class="wpsg_mod_sandbox_layer" style="display:none;">
|
14 |
<div class="wpsg_mod_sandbox_layer" style="display:none;">
|
Line 96... |
Line 97... |
96 |
|
97 |
|
97 |
<?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')); ?>
|
98 |
<?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')); ?>
|
98 |
<?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')); ?>
|
99 |
<?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')); ?>
|
99 |
<?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')); ?>
|
100 |
<?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')); ?>
|
100 |
|
101 |
|
101 |
<script type="text/javascript">/* <![CDATA[ */
|
102 |
<script>
|
102 |
|
103 |
|
103 |
jQuery(document).ready(function() {
|
104 |
jQuery(document).ready(function() {
|
104 |
|
105 |
|
- |
|
106 |
var wpsg_mod_paypalapi_version = jQuery('#wpsg_mod_paypalapi_version').val();
|
- |
|
107 |
|
- |
|
108 |
jQuery('#wpsg_mod_paypalapi_version').on('change', function() {
|
- |
|
109 |
|
- |
|
110 |
if (jQuery(this).val() === 'v2' && wpsg_mod_paypalapi_version === 'v1') {
|
- |
|
111 |
|
- |
|
112 |
alert('<?php echo __('Beim Wechseln von V1 auf V2 sollte eine neue App im PayPal Developer Intervace angelegt werden.', 'wpsg'); ?>');
|
- |
|
113 |
|
- |
|
114 |
}
|
- |
|
115 |
|
- |
|
116 |
});
|
- |
|
117 |
|
105 |
jQuery('#wpsg_mod_paypalapi_plus_aktiv').on('change', function() {
|
118 |
jQuery('#wpsg_mod_paypalapi_plus_aktiv').on('change', function() {
|
106 |
|
119 |
|
107 |
jQuery('.wpsg_mod_paypalapi_plus_aktiv_layer').hide();
|
120 |
jQuery('.wpsg_mod_paypalapi_plus_aktiv_layer').hide();
|
108 |
jQuery('.wpsg_mod_paypalapi_plus_aktiv_layer_' + jQuery(this).val()).show();
|
121 |
jQuery('.wpsg_mod_paypalapi_plus_aktiv_layer_' + jQuery(this).val()).show();
|
109 |
|
122 |
|
Line 159... |
Line 172... |
159 |
|
172 |
|
160 |
} );
|
173 |
} );
|
161 |
|
174 |
|
162 |
} );
|
175 |
} );
|
163 |
|
176 |
|
164 |
/* ]]> */</script>
|
- |
|
165 |
|
177 |
</script>
|
- |
|
178 |
|
166 |
|
179 |
|