Subversion Repositories wpShopGermany4

Rev

Rev 5382 | Rev 5922 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4671 daniel 1
<?php
4655 daniel 2
 
4671 daniel 3
	/**
4
	 * Template für die Einstellungen des PayPal API Moduls
5
	 */
4655 daniel 6
 
4671 daniel 7
?>
4655 daniel 8
 
4855 daniel 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/'))); ?>
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')); ?>
4655 daniel 12
 
4998 daniel 13
<div class="wpsg_mod_sandbox_layer" style="display:none;">
14
 
5003 daniel 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')); ?>
4998 daniel 17
 
5003 daniel 18
	<br />
19
 
4998 daniel 20
</div>
21
 
4740 daniel 22
<br />
4695 daniel 23
 
5731 daniel 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
 
4855 daniel 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')); ?>
5227 daniel 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>
4740 daniel 34
 
4671 daniel 35
<br />
36
 
4743 daniel 37
<?php echo wpsg_drawForm_Input('wpsg_mod_paypalapi_gebuehr', __('Gebühr/Rabatt', 'wpsg'), wpsg_ff($this->get_option('wpsg_mod_paypalapi_gebuehr'), true), 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')); ?>
4671 daniel 40
 
41
<br />
42
 
4718 daniel 43
<div class="wpsg_form_field ">
44
	<div class="wpsg_form_left">
45
		<label for=""><?php echo __('Stornierung bei Statuswechsel', 'wpsg'); ?>:</label>
46
	</div>
47
	<div class="wpsg_form_right">
4743 daniel 48
		<a href="#" class="wpsg_mod_paypalapi_stornostate"><?php echo __('Bearbeiten', 'wpsg'); ?></a>
4718 daniel 49
	</div>
50
	<div class="wpsg_clear"></div>
51
</div>
52
<div class="wpsg_mod_paypalapi_stornostate_layer" style="display:none;">
4719 daniel 53
 
4774 thomas 54
	<?php foreach ($this->arStatus as $status_id => $status_label) { $arStornoStatus = (array)$this->get_option('wpsg_mod_paypalapi_stornostate'); ?>
55
	<?php echo wpsg_drawForm_Checkbox('wpsg_mod_paypalapi_stornostate['.$status_id.']', __($status_label, 'wpsg'), $arStornoStatus[$status_id], array('labelright' => true)); ?>
4718 daniel 56
	<?php } ?>
57
 
58
	<br />
59
 
60
</div>
61
 
62
<br />
63
 
4855 daniel 64
<?php echo wpsg_drawForm_Select('wpsg_page_mod_paypalapi_success', __('Erfolgsseite', 'wpsg'), $this->view['pages'], $this->get_option('wpsg_page_mod_paypalapi_success'), array('help' => 'wpsg_page_mod_paypal_success')); ?>
65
<?php echo wpsg_drawForm_Select('wpsg_page_mod_paypalapi_error', __('Fehlerseite', 'wpsg'), $this->view['pages'], $this->get_option('wpsg_page_mod_paypalapi_error'), array('help' => 'wpsg_page_mod_paypal_error')); ?>
4695 daniel 66
 
67
<br />
68
 
4993 daniel 69
<?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')); ?>
5382 daniel 70
<?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')); ?>
4993 daniel 71
<?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')); ?>
5382 daniel 72
<div class="wpsg_mod_paypalapi_plus_aktiv">
73
	<?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')); ?>
74
	<?php echo wpsg_drawForm_Input('', __('Return URL', 'wpsg'), $this->getUrl(
75
		wpsg_ShopController::URL_BASKET,
76
		'wpsg_mod_paypalapi',
77
		'startPayPalExpress',
78
		array(),
79
		((wpsg_isSizedInt($this->get_option('wpsg_mod_paypalapi_paypalexpress_forceSSL')))?true:false)
80
	), array('readonly' => true, 'help' => 'wpsg_mod_paypalapi_paypalexpress_returnurl')); ?>
81
	<br />
82
</div>
83
 
5731 daniel 84
<div class="wpsg_mod_paypalapi_plus_inaktiv">
85
-    <?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')); ?>
86
-
87
-</div>
88
 
4993 daniel 89
<?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')); ?>
5007 daniel 90
 
91
<br />
92
<?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'))); ?>
93
<?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'))); ?>
94
<?php echo wpsg_drawForm_Select('wpsg_mod_paypalapi_experience_locale_code', __('Sprache im PayPal Zahlungsinterface', 'wpsg'), array(
95
	'DE' => __('Deutsch', 'wpsg'),
96
	'GB' => __('Englisch', 'wpsg'),
97
	'FR' => __('Französisch', 'wpsg')
98
), $this->get_option('wpsg_mod_paypalapi_experience_locale_code'), array('help' => 'wpsg_mod_paypalapi_experience_locale_code')); ?>
99
<br />
100
 
101
 
4993 daniel 102
<?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')); ?>
103
<?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')); ?>
104
<?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')); ?>
4833 daniel 105
 
4718 daniel 106
<script type="text/javascript">/* <![CDATA[ */
107
 
108
	jQuery(document).ready(function() {
4993 daniel 109
 
5227 daniel 110
		jQuery('#wpsg_mod_paypalapi_webhook_log').bind('change', function() {
111
 
112
			jQuery('.layer_wpsg_mod_paypalapi_webhook_log').hide();
113
 
114
			if (jQuery(this).is(':checked'))
115
			{
116
 
117
				jQuery('.layer_wpsg_mod_paypalapi_webhook_log_1').show();
118
 
119
			}
120
 
121
		} ).change();
122
 
4998 daniel 123
		jQuery('#wpsg_mod_paypalapi_sandbox').bind('change', function() {
124
 
125
			if (jQuery(this).is(':checked')) jQuery('.wpsg_mod_sandbox_layer').show();
126
			else jQuery('.wpsg_mod_sandbox_layer').hide();
127
 
128
		} ).change();
129
 
4993 daniel 130
		jQuery('#wpsg_mod_paypalapi_plus_aktiv').bind('change', function() {
131
 
5731 daniel 132
			if (jQuery(this).is(':checked'))
133
-            {
134
-
135
-                jQuery('.wpsg_mod_paypalapi_plus_aktiv').show();
136
-                jQuery('.wpsg_mod_paypalapi_plus_inaktiv').hide();
137
-
138
-            }
139
-			else
140
-            {
141
-
142
-                jQuery('.wpsg_mod_paypalapi_plus_aktiv').hide();
143
-                jQuery('.wpsg_mod_paypalapi_plus_inaktiv').show();
144
-
145
-            }
4993 daniel 146
 
147
		} ).change();
4740 daniel 148
 
4718 daniel 149
		jQuery('.wpsg_mod_paypalapi_stornostate').bind('click', function() {
150
 
151
			jQuery('.wpsg_mod_paypalapi_stornostate_layer').toggle();
152
 
153
			if (jQuery('.wpsg_mod_paypalapi_stornostate_layer').is(':visible')) jQuery(this).html('<?php echo __('Ausblenden', 'wpsg'); ?>');
154
			else jQuery(this).html('<?php echo __('Bearbeiten', 'wpsg'); ?>');
155
 
156
			return false;
157
 
158
		} );
159
 
160
	} );
161
 
162
/* ]]> */</script>