diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2020-04-28 06:26:31 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2020-04-28 06:26:31 +0000 |
| commit | f1850f51a088c4892e215f9eb963d435f45767e4 (patch) | |
| tree | 83a97e822b7f07403496b4e02b41e5e7690dd2d7 /views/mods/mod_paypalapi/settings_edit.phtml | |
| parent | ef7678be4649d041a651dc226427a58b6b49c9f2 (diff) | |
- Upload zu Produkten
- Flächenprodukt umbenannt in "Druckerei" inter mod_printshop
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7706 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_paypalapi/settings_edit.phtml')
| -rw-r--r-- | views/mods/mod_paypalapi/settings_edit.phtml | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/views/mods/mod_paypalapi/settings_edit.phtml b/views/mods/mod_paypalapi/settings_edit.phtml index 7d6678a..e6ae1ef 100644 --- a/views/mods/mod_paypalapi/settings_edit.phtml +++ b/views/mods/mod_paypalapi/settings_edit.phtml @@ -6,6 +6,7 @@ ?>
+<?php echo wpsg_drawForm_Select('wpsg_mod_paypalapi_version', __('API Version', 'wpsg'), ['v1' => 'V1', 'v2' => 'V2'], $this->get_option('wpsg_mod_paypalapi_version'), []); ?>
<?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')); ?>
@@ -98,10 +99,22 @@ <?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[ */
+<script>
jQuery(document).ready(function() {
+ var wpsg_mod_paypalapi_version = jQuery('#wpsg_mod_paypalapi_version').val();
+
+ jQuery('#wpsg_mod_paypalapi_version').on('change', function() {
+
+ if (jQuery(this).val() === 'v2' && wpsg_mod_paypalapi_version === 'v1') {
+
+ alert('<?php echo __('Beim Wechseln von V1 auf V2 sollte eine neue App im PayPal Developer Intervace angelegt werden.', 'wpsg'); ?>');
+
+ }
+
+ });
+
jQuery('#wpsg_mod_paypalapi_plus_aktiv').on('change', function() {
jQuery('.wpsg_mod_paypalapi_plus_aktiv_layer').hide();
@@ -161,4 +174,4 @@ } );
-/* ]]> */</script>
\ No newline at end of file +</script>
\ No newline at end of file |
