diff options
Diffstat (limited to 'views/mods/mod_wirecard')
| -rw-r--r-- | views/mods/mod_wirecard/gfx/logo_100x25.png | bin | 0 -> 3792 bytes | |||
| -rw-r--r-- | views/mods/mod_wirecard/gfx/wirecard.png | bin | 0 -> 4762 bytes | |||
| -rw-r--r-- | views/mods/mod_wirecard/order_done.phtml | 35 | ||||
| -rw-r--r-- | views/mods/mod_wirecard/paymenthint.phtml | 14 | ||||
| -rw-r--r-- | views/mods/mod_wirecard/settings_edit.phtml | 125 |
5 files changed, 174 insertions, 0 deletions
diff --git a/views/mods/mod_wirecard/gfx/logo_100x25.png b/views/mods/mod_wirecard/gfx/logo_100x25.png Binary files differnew file mode 100644 index 0000000..a18276d --- /dev/null +++ b/views/mods/mod_wirecard/gfx/logo_100x25.png diff --git a/views/mods/mod_wirecard/gfx/wirecard.png b/views/mods/mod_wirecard/gfx/wirecard.png Binary files differnew file mode 100644 index 0000000..b668410 --- /dev/null +++ b/views/mods/mod_wirecard/gfx/wirecard.png diff --git a/views/mods/mod_wirecard/order_done.phtml b/views/mods/mod_wirecard/order_done.phtml new file mode 100644 index 0000000..f8869eb --- /dev/null +++ b/views/mods/mod_wirecard/order_done.phtml @@ -0,0 +1,35 @@ +<?php
+
+ /**
+ * Template für die Integration von wirecard in die Bestellabschlußseite
+ */
+
+?>
+<?php if ($this->get_option('wpsg_mod_wirecard_mode') == '0') { ?>
+
+<iframe id="wpsg_mod_wirecard_iframe" src="<?php echo $this->view['wpsg_mod_wirecard']['redirectUrl']; ?>"></iframe>
+
+<?php } else if ($this->get_option('wpsg_mod_wirecard_mode') == '1') { ?>
+
+<script type="text/javascript">/* <![CDATA[ */
+
+ function wirecard_openPopup()
+ {
+
+ wirecard_popup = window.open('<?php echo $this->view['wpsg_mod_wirecard']['redirectUrl']; ?>', '<?php echo __('Zahlung mit wirecard', 'wpsg'); ?>', 'width=600,height=600,resizable=yes');
+
+ }
+
+ jQuery(document).ready(function() { wirecard_openPopup(); } );
+
+/* ]]> */</script>
+
+<?php echo __('Sollte sich kein Fenster für die Zahlung öffnen liegt dies möglicherweise an Ihrem PopUp Blocker. Klicken sie <a href="#" onclick="wirecard_openPopup(); return false">hier</a> um das Fenster erneut zu öffnen.', 'wpsg'); ?>
+
+<?php } else if ($this->get_option('wpsg_mod_wirecard_mode') == '2') { ?>
+
+<a href="<?php echo $this->view['wpsg_mod_wirecard']['redirectUrl']; ?>">
+ <img src="<?php echo $this->arPayment[12]['logo']; ?>" alt="<?php echo __('Zahlung mit wirecard starten.', 'wpsg'); ?>" />
+</a>
+
+<?php } ?>
\ No newline at end of file diff --git a/views/mods/mod_wirecard/paymenthint.phtml b/views/mods/mod_wirecard/paymenthint.phtml new file mode 100644 index 0000000..7d5b912 --- /dev/null +++ b/views/mods/mod_wirecard/paymenthint.phtml @@ -0,0 +1,14 @@ +<div class="wpsg_mod_wirecard_hint">
+ <?php echo __($this->get_option('wpsg_mod_wirecard_hint'), 'wpsg'); ?>
+ <?php if (wpsg_isSizedArray($this->view['wpsg_mod_wirecard']['arPaymentTypes']) && sizeof($this->view['wpsg_mod_wirecard']['arPaymentTypes']) > 1) { ?>
+ <br /><br />
+ <label for="wpsg_mod_wirecard_paymentType"><?php echo __('Zahlungsart', 'wpsg'); ?>:</label>
+ <select name="wpsg_mod_wirecard_paymentType" class="wpsg_mod_wirecard_paymentType">
+ <?php foreach ($this->view['wpsg_mod_wirecard']['arPaymentTypes'] as $payment_key => $payment_name) { ?>
+ <option <?php echo (($this->view['wpsg_mod_wirecard']['paymentTypeSet'] == $payment_key)?'selected="selected"':''); ?> value="<?php echo $payment_key; ?>"><?php echo $payment_name; ?></option>
+ <?php } ?>
+ </select><br />
+ <?php } else { ?>
+ <input type="hidden" name="wpsg_mod_wirecard_paymentType" value="<?php $arTypeKeys = array_keys($this->view['wpsg_mod_wirecard']['arPaymentTypes']); echo $arTypeKeys[0]; ?>" />
+ <?php } ?>
+</div>
diff --git a/views/mods/mod_wirecard/settings_edit.phtml b/views/mods/mod_wirecard/settings_edit.phtml new file mode 100644 index 0000000..302e279 --- /dev/null +++ b/views/mods/mod_wirecard/settings_edit.phtml @@ -0,0 +1,125 @@ +<?php
+
+ /**
+ * Template für die Einstellungen des Moduls "wirecard"
+ */
+
+?>
+<?php echo wpsg_drawForm_Input('wpsg_mod_wirecard_name', __('Bezeichnung', 'wpsg'), $this->get_option('wpsg_mod_wirecard_name'), array('help' => 'wpsg_shippay_name')); ?>
+<?php echo wpsg_drawForm_Checkbox('wpsg_mod_wirecard_activ', __('Aktiv', 'wpsg'), $this->get_option('wpsg_mod_wirecard_activ'), array('help' => 'wpsg_shippay_activ')); ?>
+<?php echo wpsg_drawForm_Textarea('wpsg_mod_wirecard_hint', __('Hinweistext', 'wpsg'), $this->get_option('wpsg_mod_wirecard_hint'), array('help' => 'wpsg_shippay_hint')); ?>
+<?php echo wpsg_drawForm_Input('wpsg_mod_wirecard_logo', __('Logo URL', 'wpsg'), $this->get_option('wpsg_mod_wirecard_logo'), array('help' => 'wpsg_mod_wirecard_logo', 'hint' => __('Auflösung: 95x65 Pixel (GIF/JPG/PNG)', 'wpsg'))); ?>
+<br />
+<?php echo wpsg_drawForm_Input('wpsg_mod_wirecard_customerid', __('Kunden ID', 'wpsg'), $this->get_option('wpsg_mod_wirecard_customerid'), array('help' => 'wpsg_mod_wirecard_customerid')); ?>
+<?php echo wpsg_drawForm_Input('wpsg_mod_wirecard_shopid', __('Shop ID', 'wpsg'), $this->get_option('wpsg_mod_wirecard_shopid'), array('help' => 'wpsg_mod_wirecard_shopid')); ?>
+<?php echo wpsg_drawForm_Input('wpsg_mod_wirecard_secret', __('Geheimer Schlüssel', 'wpsg'), $this->get_option('wpsg_mod_wirecard_secret'), array('help' => 'wpsg_mod_wirecard_secret')); ?>
+<br />
+<?php echo wpsg_drawForm_Input('wpsg_mod_wirecard_gebuehr', __('Gebühr/Rabatt', 'wpsg'), wpsg_ff($this->get_option('wpsg_mod_wirecard_gebuehr'), true), array('unit' => $this->get_option('wpsg_currency').' / %', 'help' => 'wpsg_shippay_gebuehr')); ?>
+<div class="wpsg_form_field">
+ <div class="wpsg_form_left">
+ <label for="wpsg_mod_wirecard_mwst"><?php echo __('Steuersatz', 'wpsg'); ?>:</label>
+ </div>
+ <div class="wpsg_form_right">
+ <select id="wpsg_mod_wirecard_mwst" name="wpsg_mod_wirecard_mwst">
+ <option value="0"><?php echo __('anteilig', 'wpsg'); ?></option>
+ <?php foreach ($this->view['mwst'] as $mwst) { ?>
+ <option value="<?php echo $mwst['id']; ?>" <?php echo (($mwst['id'] == $this->get_option('wpsg_mod_wirecard_mwst'))?'selected="selected"':''); ?>><?php echo wpsg_ff($mwst['value']).'%'; ?></option>
+ <?php } ?>
+ </select>
+ <a href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_mwst" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_mwst" class="wpsg_form_help"></a>
+ </div>
+ <div class="wpsg_clear"></div>
+</div>
+<?php echo wpsg_drawForm_Checkbox('wpsg_mod_wirecard_mwstland', __('Keine MwSt. wenn Land steuerfrei', 'wpsg'), $this->get_option('wpsg_mod_wirecard_mwstland'), array('help' => 'wpsg_shippay_mwstland')); ?>
+<?php echo wpsg_drawForm_Select('wpsg_mod_wirecard_currency', __('Währung', 'wpsg'), array(
+ 'EUR' => __('Euro', 'wpsg'),
+ 'CHF' => __('Schweizer Franken', 'wpsg'),
+ 'GBP' => __('Pfund Sterling', 'wpsg'),
+ 'USD' => __('US Dollar', 'wpsg')
+), $this->get_option('wpsg_mod_wirecard_currency'), array('help' => 'wpsg_mod_wirecard_currency')); ?>
+<br />
+
+<div class="wpsg_form_field">
+ <div class="wpsg_form_left">
+ <label for="wpsg_mod_wirecard_paymenttype"><?php echo __('Verfügbare Zahlungsarten', 'wpsg'); ?>:</label>
+ </div>
+ <div class="wpsg_form_right">
+ <ul class="wpsg_mod_wirecard_paymenttypeselect">
+ <?php foreach ($this->view['paymentTypes'] as $pt_key => $pt) { ?>
+ <li>
+ <input type="hidden" name="wpsg_mod_wirecard_paymentorder[]" value="<?php echo wpsg_hspc($pt_key); ?>" />
+ <input type="checkbox" value="<?php echo wpsg_hspc($pt_key); ?>" <?php echo ((in_array($pt_key, (array)explode(',', $this->get_option('wpsg_mod_wirecard_paymenttype'))))?'checked="checked"':''); ?> name="wpsg_mod_wirecard_paymenttype[]" /> <?php echo wpsg_hspc($pt); ?>
+ </li>
+ <?php } ?>
+ </ul>
+ <p class="wpsg_hinweis"><?php echo __('Reihenfolge kann mittels Drag&Drop verändert werden.', 'wpsg'); ?></p>
+ </div>
+ <div class="wpsg_clear"></div>
+</div>
+
+<?php echo wpsg_drawForm_Checkbox('wpsg_mod_wirecard_submitadress', __('Adressdaten an wirecard übermitteln?', 'wpsg'), $this->get_option('wpsg_mod_wirecard_submitadress'), array('help' => 'wpsg_mod_wirecard_submitadress')); ?>
+<?php echo wpsg_drawForm_Input('wpsg_mod_wirecard_minValue', __('Minimaler Betrag bei Rechnungskauf', 'wpsg'), $this->get_option('wpsg_mod_wirecard_minValue'), array('help' => 'wpsg_mod_wirecard_minValue')); ?>
+<?php echo wpsg_drawForm_Input('wpsg_mod_wirecard_maxValue', __('Maximaler Betrag bei Rechnungskauf', 'wpsg'), $this->get_option('wpsg_mod_wirecard_maxValue'), array('help' => 'wpsg_mod_wirecard_maxValue')); ?>
+
+<?php echo wpsg_drawForm_Select('wpsg_mod_wirecard_language', __('Sprache innerhalb wirecard', 'wpsg'), array(
+ 'auto' => __('Automatisch', 'wpsg'),
+ 'de' => __('Deutsch', 'wpsg'),
+ 'en' => __('Englisch', 'wpsg'),
+ 'fr' => __('Französisch', 'wpsg')
+), $this->get_option('wpsg_mod_wirecard_language')); ?>
+
+<?php echo wpsg_drawForm_Input('wpsg_mod_wirecard_subject', __('Bestellbeschreibung', 'wpsg'), $this->get_option('wpsg_mod_wirecard_subject'), array('help' => 'wpsg_mod_wirecard_subject')); ?>
+
+<?php echo wpsg_drawForm_Select('wpsg_page_mod_wirecard_success', __('Erfolgsseite', 'wpsg'), $this->view['pages'], $this->get_option('wpsg_page_mod_wirecard_success')); ?>
+<?php echo wpsg_drawForm_Select('wpsg_page_mod_wirecard_cancel', __('Seite bei Abbruch', 'wpsg'), $this->view['pages'], $this->get_option('wpsg_page_mod_wirecard_cancel')); ?>
+<?php echo wpsg_drawForm_Select('wpsg_page_mod_wirecard_error', __('Fehlerseite', 'wpsg'), $this->view['pages'], $this->get_option('wpsg_page_mod_wirecard_error')); ?>
+<?php echo wpsg_drawForm_Select('wpsg_page_mod_wirecard_pending', __('Seite bei keinem Ergebnis', 'wpsg'), $this->view['pages'], $this->get_option('wpsg_page_mod_wirecard_pending')); ?>
+<?php echo wpsg_drawForm_Select('wpsg_mod_wirecard_mode', __('Integrationsmodus', 'wpsg'), array('0' => __('IFrame', 'wpsg'), '1' => __('Popup', 'wpsg'), '2' => __('Weiterleitung', 'wpsg')), $this->get_option('wpsg_mod_wirecard_mode'), array('help' => 'wpsg_mod_wirecard_mode')); ?>
+<div id="wpsg_mod_wirecard_mode_2" style="display:none;">
+ <?php echo wpsg_drawForm_Checkbox('wpsg_mod_wirecard_autostart', __('Zahlung sofort starten', 'wpsg'), $this->get_option('wpsg_mod_wirecard_autostart'), array('help' => 'wpsg_shippay_paystart')); ?>
+</div>
+<br />
+
+<script type="text/javascript">/* <![CDATA[ */ + + jQuery(document).ready(function() {
+
+ jQuery(".wpsg_mod_wirecard_paymenttypeselect").sortable().disableSelection();
+
+ jQuery('#wpsg_mod_wirecard_paymenttype').bind('change', function() {
+
+ if (jQuery(this).val() == "1")
+ {
+
+ jQuery('.wpsg_mod_wirecard_paymentselect_0').show();
+
+ }
+ else
+ {
+
+ jQuery('.wpsg_mod_wirecard_paymentselect_0').hide();
+
+ }
+
+ } ).change();
+
+ jQuery('#wpsg_mod_wirecard_mode').bind('change', function() {
+
+ if (jQuery(this).val() == "2")
+ {
+
+ jQuery('#wpsg_mod_wirecard_mode_2').show();
+
+ }
+ else
+ {
+
+ jQuery('#wpsg_mod_wirecard_mode_2').hide();
+
+ }
+
+ } ).change();
+
+ } ); + +/* ]]> */</script>
\ No newline at end of file |
