Subversion Repositories wpShopGermany4

Rev

Rev 7214 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7214 Rev 7514
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_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/'))); ?>
9
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_paypalratepay_aktiv', __('PayPal Ratenzahlung für neue Bestellungen erlauben', 'wpsg'), $this->get_option('wpsg_mod_paypalratepay_aktiv'), array('help' => 'wpsg_shippay_activ')); ?>
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
 
-
 
13
<div class="wpsg_mod_sandbox_layer" style="display:none;">
-
 
14
 
-
 
15
	<?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')); ?>
-
 
16
	<?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')); ?>
-
 
17
 
-
 
18
	<br />
-
 
19
	
-
 
20
</div>
-
 
21
 
-
 
22
<br />
-
 
23
 
-
 
24
<?php echo wpsg_drawForm_Input('wpsg_mod_paypalapi_currency', __('Währungscode (Standard: EUR)'), $this->get_option('wpsg_mod_paypalapi_currency'), array('help' => 'wpsg_mod_paypal_currency')); ?>
-
 
25
 
-
 
26
<br />
-
 
27
 
-
 
28
<?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')); ?>
-
 
29
<?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')); ?>
-
 
30
<?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)); ?>
-
 
31
<div class="layer_wpsg_mod_paypalapi_webhook_log layer_wpsg_mod_paypalapi_webhook_log_1">
-
 
32
	<?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'))); ?>
-
 
33
</div>
-
 
34
 
-
 
35
<br />
-
 
36
 
-
 
37
<?php echo wpsg_drawForm_Input('wpsg_mod_paypalapi_gebuehr', __('Gebühr/Rabatt', 'wpsg'), wpsg_ff($this->get_option('wpsg_mod_paypalapi_gebuehr')), array('unit' => $this->get_option('wpsg_currency').' / %', 'help' => 'wpsg_shippay_gebuehr')); ?>
-
 
38
<?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')); ?>
-
 
39
<?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')); ?>
-
 
40
 
-
 
41
<br />
-
 
42
 
-
 
43
<?php echo wpsg_drawForm_Link('wpsg_mod_paypalapi_link', __('Stornierung bei Statuswechsel', 'wpsg'), 
-
 
44
		__('Bearbeiten', 'wpsg'), array('help' => 'wpsg_mod_paypalapi_link', 'class' => 'wpsg_mod_paypalapi_stornostate')); ?>
-
 
45
 
-
 
46
 
-
 
47
<div class="wpsg_mod_paypalapi_stornostate_layer" style="display:none;">
-
 
48
	
-
 
49
	<?php foreach ($this->arStatus as $status_id => $status_label) { $arStornoStatus = (array)$this->get_option('wpsg_mod_paypalapi_stornostate'); ?>
-
 
50
	<?php echo wpsg_drawForm_Checkbox('wpsg_mod_paypalapi_stornostate['.$status_id.']', __($status_label, 'wpsg'), wpsg_getInt($arStornoStatus[$status_id]), array('labelright' => true)); ?>	
-
 
51
	<?php } ?> 
-
 
52
	
-
 
53
	<br />
-
 
54
	
-
 
55
</div>
-
 
56
 
-
 
57
<br />
-
 
58
 
-
 
59
<?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')); ?>
-
 
60
<?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')); ?>
-
 
61
 
-
 
62
<div class="wpsg_mod_paypalapi_plus_aktiv_layer wpsg_mod_paypalapi_plus_aktiv_layer_1">
-
 
63
	<?php echo wpsg_drawForm_Checkbox('wpsg_mod_paypalapi_plus_basket', __('Zahlungsauswahl im Warenkorb', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_plus_basket'), array('help' => 'wpsg_mod_paypalapi_plus_basket')); ?>
-
 
64
</div>
-
 
65
 
-
 
66
<?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')); ?>
-
 
67
<div class="wpsg_mod_paypalapi_plus_aktiv">
-
 
68
	<?php echo wpsg_drawForm_Checkbox('wpsg_mod_paypalapi_paypalexpress_forceSSL', __('SSL für ReturnURL erzwingen', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_paypalexpress_forceSSL'), array('help' => 'wpsg_mod_paypalapi_paypalexpress_forceSSL')); ?>
-
 
69
	<?php echo wpsg_drawForm_Input('', __('Return URL', 'wpsg'), $this->getUrl(
-
 
70
		wpsg_ShopController::URL_BASKET, 
-
 
71
		'wpsg_mod_paypalapi', 
-
 
72
		'startPayPalExpress', 
-
 
73
		array(), 
-
 
74
		((wpsg_isSizedInt($this->get_option('wpsg_mod_paypalapi_paypalexpress_forceSSL')))?true:false)
-
 
75
	), array('readonly' => true, 'help' => 'wpsg_mod_paypalapi_paypalexpress_returnurl')); ?>
-
 
76
	<br />
-
 
77
</div>
-
 
78
 
-
 
79
<div class="wpsg_mod_paypalapi_plus_inaktiv">
-
 
80
-    <?php echo wpsg_drawForm_Checkbox('wpsg_mod_paypalapi_autostart', __('Zahlung sofort starten', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_autostart'), array('help' => 'wpsg_shippay_paystart')); ?>
-
 
81
-    
-
 
82
-</div>
-
 
83
 
-
 
84
<?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')); ?>
-
 
85
 
10
 
86
<br />
-
 
87
<?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'))); ?>
11
<?php echo wpsg_drawForm_Input('wpsg_mod_paypalratepay_name', __('Bezeichnung', 'wpsg'), $this->get_option('wpsg_mod_paypalratepay_name'), array('help' => 'wpsg_shippay_name')); ?>
88
<?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'))); ?>
12
<?php echo wpsg_drawForm_Textarea('wpsg_mod_paypalratepay_hint', __('Hinweistext', 'wpsg'), $this->get_option('wpsg_mod_paypalratepay_hint'), array('help' => 'wpsg_shippay_hint')); ?>
89
<?php echo wpsg_drawForm_Select('wpsg_mod_paypalapi_experience_locale_code', __('Sprache im PayPal Zahlungsinterface', 'wpsg'), array(
-
 
90
	'DE' => __('Deutsch', 'wpsg'),
-
 
91
	'GB' => __('Englisch', 'wpsg'),
-
 
92
	'FR' => __('Französisch', 'wpsg')
-
 
93
), $this->get_option('wpsg_mod_paypalapi_experience_locale_code'), array('help' => 'wpsg_mod_paypalapi_experience_locale_code')); ?>
-
 
94
<br />
-
 
95
 
-
 
96
 
-
 
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_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
  
13
  
101
<script type="text/javascript">/* <![CDATA[ */
14
<script>
102
 
15
 
103
	jQuery(document).ready(function() {
16
	jQuery(document).ready(function() {
104
 
-
 
105
		jQuery('#wpsg_mod_paypalapi_plus_aktiv').on('change', function() {
-
 
106
			
-
 
107
			jQuery('.wpsg_mod_paypalapi_plus_aktiv_layer').hide();
-
 
108
			jQuery('.wpsg_mod_paypalapi_plus_aktiv_layer_' + jQuery(this).val()).show();
-
 
109
			
-
 
110
		} ).change();
-
 
111
		
-
 
112
		jQuery('#wpsg_mod_paypalapi_webhook_log').bind('change', function() {
-
 
113
 
-
 
114
			jQuery('.layer_wpsg_mod_paypalapi_webhook_log').hide();
-
 
115
			
-
 
116
			if (jQuery(this).is(':checked'))
-
 
117
			{
-
 
118
				
17
				
119
				jQuery('.layer_wpsg_mod_paypalapi_webhook_log_1').show();
-
 
120
 
-
 
121
			}
-
 
122
			
-
 
123
		} ).change();
-
 
124
		
-
 
125
		jQuery('#wpsg_mod_paypalapi_sandbox').bind('change', function() {
18
		jQuery('#wpsg_mod_paypalratepay_sandbox').bind('change', function() {
126
 
19
 
127
			if (jQuery(this).is(':checked')) jQuery('.wpsg_mod_sandbox_layer').show();
20
			if (jQuery(this).is(':checked')) jQuery('.wpsg_mod_sandbox_layer').show();
128
			else jQuery('.wpsg_mod_sandbox_layer').hide();
21
			else jQuery('.wpsg_mod_sandbox_layer').hide();
129
			
22
			
130
		} ).change();
23
		} ).change();
131
		
24
		
132
		jQuery('#wpsg_mod_paypalapi_plus_aktiv').bind('change', function() {
-
 
133
 
-
 
134
			if (jQuery(this).is(':checked'))
-
 
135
            {
-
 
136
                
-
 
137
                jQuery('.wpsg_mod_paypalapi_plus_aktiv').show();
-
 
138
                jQuery('.wpsg_mod_paypalapi_plus_inaktiv').hide();
-
 
139
                
-
 
140
            }
-
 
141
			else 
-
 
142
            {
-
 
143
             
-
 
144
                jQuery('.wpsg_mod_paypalapi_plus_aktiv').hide();
-
 
145
                jQuery('.wpsg_mod_paypalapi_plus_inaktiv').show();
-
 
146
                
-
 
147
            }
-
 
148
			
-
 
149
		} ).change();
-
 
150
		
-
 
151
		jQuery('.wpsg_mod_paypalapi_stornostate').bind('click', function() {
-
 
152
 
-
 
153
			jQuery('.wpsg_mod_paypalapi_stornostate_layer').toggle();
-
 
154
 
-
 
155
			if (jQuery('.wpsg_mod_paypalapi_stornostate_layer').is(':visible')) jQuery(this).html('<?php echo __('Ausblenden', 'wpsg'); ?>');
-
 
156
			else jQuery(this).html('<?php echo __('Bearbeiten', 'wpsg'); ?>');
-
 
157
			
-
 
158
			return false;
-
 
159
			
-
 
160
		} );
-
 
161
		
-
 
162
	} );
25
	} );
163
 
26
 
164
/* ]]> */</script>
-
 
165
27
</script>
-
 
28
166
29