diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2016-01-14 14:55:36 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2016-01-14 14:55:36 +0000 |
| commit | ad405c7045c6e242080ec9d3ce4c9e586b517c4f (patch) | |
| tree | b41905f4d27f3eaaabd5bad3a39f8d3873540b46 /views/mods/mod_crefopay | |
- Testweise 4
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5261 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_crefopay')
| -rw-r--r-- | views/mods/mod_crefopay/gfx/logo_100x25.png | bin | 0 -> 3247 bytes | |||
| -rw-r--r-- | views/mods/mod_crefopay/gfx/logo_crefopay.gif | bin | 0 -> 4455 bytes | |||
| -rw-r--r-- | views/mods/mod_crefopay/iframe.phtml | 21 | ||||
| -rw-r--r-- | views/mods/mod_crefopay/order_done.phtml | 19 | ||||
| -rw-r--r-- | views/mods/mod_crefopay/order_view_afterpayment.phtml | 26 | ||||
| -rw-r--r-- | views/mods/mod_crefopay/settings_edit.phtml | 69 |
6 files changed, 135 insertions, 0 deletions
diff --git a/views/mods/mod_crefopay/gfx/logo_100x25.png b/views/mods/mod_crefopay/gfx/logo_100x25.png Binary files differnew file mode 100644 index 0000000..808b2ac --- /dev/null +++ b/views/mods/mod_crefopay/gfx/logo_100x25.png diff --git a/views/mods/mod_crefopay/gfx/logo_crefopay.gif b/views/mods/mod_crefopay/gfx/logo_crefopay.gif Binary files differnew file mode 100644 index 0000000..c8cebd0 --- /dev/null +++ b/views/mods/mod_crefopay/gfx/logo_crefopay.gif diff --git a/views/mods/mod_crefopay/iframe.phtml b/views/mods/mod_crefopay/iframe.phtml new file mode 100644 index 0000000..7308299 --- /dev/null +++ b/views/mods/mod_crefopay/iframe.phtml @@ -0,0 +1,21 @@ +<?php
+
+ /**
+ * Template, welches die Zahlung über CrefoPay ermöglicht
+ */
+
+?>
+
+<?php echo $this->writeFrontendMessage(); ?>
+
+<?php if (wpsg_isSizedString($this->view['wpsg_mod_crefopay']['redirectURL'])) { ?>
+
+ <script type="text/javascript">/* <![CDATA[ */
+
+ function wpsg_mod_crefopay_destroyFrame(url) { location.href = url; } // function wpsg_mod_crefopay_destroyFrame(url)
+
+ /* ]]> */</script>
+
+ <iframe id="wpsg_mod_crefopay_iframe" style="min-height:<?php echo ((wpsg_isSizedInt($this->get_option('wpsg_mod_crefopay_frameheight')))?$this->get_option('wpsg_mod_crefopay_frameheight'):1100); ?>px;" src="<?php echo $this->view['wpsg_mod_crefopay']['redirectURL']; ?>" scrolling="no" seamless="seamless"></iframe>
+
+<?php } ?>
\ No newline at end of file diff --git a/views/mods/mod_crefopay/order_done.phtml b/views/mods/mod_crefopay/order_done.phtml new file mode 100644 index 0000000..78943bc --- /dev/null +++ b/views/mods/mod_crefopay/order_done.phtml @@ -0,0 +1,19 @@ +<?php
+
+ /**
+ * Template, welches die Zahlung nach der Bestellung über CrefoPay ermöglicht
+ * Wird von warenkorb/done.phtml eingebunden
+ */
+
+?>
+<?php if (wpsg_isSizedString($this->view['wpsg_mod_crefopay']['redirectURL'])) { ?>
+
+ <script type="text/javascript">/* <![CDATA[ */ + + function wpsg_mod_crefopay_destroyFrame(url) { location.href = url; } // function wpsg_mod_crefopay_destroyFrame(url) + + /* ]]> */</script>
+
+ <iframe id="wpsg_mod_crefopay_iframe" style="min-height:<?php echo ((wpsg_isSizedInt($this->get_option('wpsg_mod_crefopay_frameheight')))?$this->get_option('wpsg_mod_crefopay_frameheight'):1100); ?>px;" src="<?php echo $this->view['wpsg_mod_crefopay']['redirectURL']; ?>" scrolling="no" seamless="seamless"></iframe>
+
+<?php } ?>
\ No newline at end of file diff --git a/views/mods/mod_crefopay/order_view_afterpayment.phtml b/views/mods/mod_crefopay/order_view_afterpayment.phtml new file mode 100644 index 0000000..c293b9a --- /dev/null +++ b/views/mods/mod_crefopay/order_view_afterpayment.phtml @@ -0,0 +1,26 @@ +<?php
+
+ /**
+ * Template für die Integration der CrefoPay Zahlungsart in die Bestellverwaltung
+ */
+
+?>
+
+<?php if (wpsg_isSizedInt($this->view['oOrder']->getMeta('wpsg_mod_crefopay_status_time'))) { ?>
+ <?php echo wpsg_drawForm_Input('', __('Zahlungsstatus', 'wpsg'),$this->view['oOrder']->getMeta('wpsg_mod_crefopay_status').' ('.wpsg_formatTimestamp($this->view['oOrder']->getMeta('wpsg_mod_crefopay_status_time')).')', array('text' => true)); ?>
+ <br />
+<?php } ?>
+
+<div class="wpsg_mod_crefopay_order_sidebar">
+ <a class="button" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&noheader=1&mod=wpsg_mod_crefopay&do=status&edit_id=<?php echo $this->view['data']['id']; ?>"><?php echo __('Zahlungsstatus aktualisieren (GetStatus Call)', 'wpsg'); ?></a>
+ <a class="button" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&noheader=1&mod=wpsg_mod_crefopay&do=cancel&edit_id=<?php echo $this->view['data']['id']; ?>"><?php echo __('Zahlung abbrechen (Cancellation Call)', 'wpsg'); ?></a>
+
+ <?php if ($this->view['oOrder']->getMeta('wpsg_mod_crefopay_transactionType') == "RETAIL") { ?>
+ <a class="button" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&noheader=1&mod=wpsg_mod_crefopay&do=capture&edit_id=<?php echo $this->view['data']['id']; ?>"><?php echo __('Zahlung einziehen (Capture Call)', 'wpsg'); ?></a>
+ <?php } ?>
+
+ <a class="button" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&noheader=1&mod=wpsg_mod_crefopay&do=refund&edit_id=<?php echo $this->view['data']['id']; ?>"><?php echo __('Zahlung rückerstatten (Refund Call)', 'wpsg'); ?></a>
+ <a class="button" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&noheader=1&mod=wpsg_mod_crefopay&do=finish&edit_id=<?php echo $this->view['data']['id']; ?>"><?php echo __('Zahlung abschließen (Finish Transaction Call)', 'wpsg'); ?></a>
+
+ <div class="wpsg_clear"></div>
+</div>
\ No newline at end of file diff --git a/views/mods/mod_crefopay/settings_edit.phtml b/views/mods/mod_crefopay/settings_edit.phtml new file mode 100644 index 0000000..39bc4a2 --- /dev/null +++ b/views/mods/mod_crefopay/settings_edit.phtml @@ -0,0 +1,69 @@ +<?php
+
+ /**
+ * Einstellungen für das Modul "CrefoPay"
+ */
+
+?>
+
+<?php echo wpsg_drawForm_Checkbox('wpsg_mod_crefopay_sandbox', __('Sandbox Modus', 'wpsg'), $this->get_option('wpsg_mod_crefopay_sandbox'), array('help' => 'wpsg_mod_crefopay_sandbox')); ?>
+<?php echo wpsg_drawForm_Input('wpsg_mod_crefopay_merchantID', __('Merchant ID', 'wpsg'), $this->get_option('wpsg_mod_crefopay_merchantID'), array('help' => 'wpsg_mod_crefopay_merchantID')); ?>
+<?php echo wpsg_drawForm_Input('wpsg_mod_crefopay_shopID', __('Shop ID', 'wpsg'), $this->get_option('wpsg_mod_crefopay_shopID'), array('help' => 'wpsg_mod_crefopay_shopID')); ?>
+<?php echo wpsg_drawForm_Input('wpsg_mod_crefopay_privateKey', __('Privater Schlüssel', 'wpsg'), $this->get_option('wpsg_mod_crefopay_privateKey'), array('help' => 'wpsg_mod_crefopay_privateKey')); ?>
+<?php echo wpsg_drawForm_Checkbox('wpsg_mod_crefopay_autocapture', __('Autocapture (Nur fullcapture möglich / DIRECT)', 'wpsg'), $this->get_option('wpsg_mod_crefopay_autocapture'), array('help' => 'wpsg_mod_crefopay_autocapture')); ?>
+<?php echo wpsg_drawForm_Select('wpsg_mod_crefopay_capturestatus', __('Bestellstatus für CAPTURE (Nur RETAIL)', 'wpsg'), $this->arStatus, $this->get_option('wpsg_mod_crefopay_capturestatus'), array('help' => 'wpsg_mod_crefopay_capturestatus')); ?>
+<?php echo wpsg_drawForm_Select('wpsg_mod_crefopay_riskclass', __('Risiko Klasse', 'wpsg'), array(
+ '0' => __('Gering', 'wpsg'), // trusted transaction
+ '1' => __('Normal', 'wpsg'), // default risk transaction
+ '2' => __('Stark', 'wpsg') // high risk transaction
+), $this->get_option('wpsg_mod_crefopay_riskclass'), array('help' => 'wpsg_mod_crefopay_riskclass')); ?>
+<?php echo wpsg_drawForm_Input('wpsg_mod_crefopay_currency', __('Währungscode (Standard: EUR)', 'wpsg'), $this->get_option('wpsg_mod_crefopay_currency')); ?>
+
+<br />
+
+<?php echo wpsg_drawForm_Input('wpsg_mod_crefopay_frameheight', __('Höhe des IFrames in px', 'wpsg'), $this->get_option('wpsg_mod_crefopay_frameheight'), array('help' => 'wpsg_mod_crefopay_frameheight')); ?>
+
+<div class="wpsg_form_field ">
+ <div class="wpsg_form_left">
+ <label for=""><?php echo __('MNS Statuswechsel', 'wpsg'); ?>:</label>
+ </div>
+ <div class="wpsg_form_right">
+ <a href="#" class="wpsg_mod_crefopay_switchstatemapping" onclick="return wpsg_mod_crefopay_mnsstatemapping();"><?php echo __('Bearbeiten', 'wpsg'); ?></a>
+ </div>
+ <div class="wpsg_clear"></div>
+</div>
+<div class="wpsg_mod_crefopay_mnsstatemapping">
+ <?php foreach ($this->view['transactionMapping'] as $crefopay_status => $wpsg_status) { ?>
+ <?php echo wpsg_drawForm_Select('wpsg_mod_crefopay_statemapping_'.$crefopay_status, __($wpsg_status[1], 'wpsg'), wpsg_array_merge(array('-1' => __('Kein Wechsel', 'wpsg')), $this->arStatus), $this->get_option('wpsg_mod_crefopay_statemapping_'.$crefopay_status)); ?>
+ <?php } ?>
+ <br />
+</div>
+
+<?php echo wpsg_drawForm_Checkbox('wpsg_mod_crefopay_mns_notice', __('Kunden über Statuswechsel informieren', 'wpsg'), $this->get_option('wpsg_mod_crefopay_mns_notice'), array('labelright' => true)); ?>
+
+<script type="text/javascript">/* <![CDATA[ */ + + jQuery(document).ready(function() {
+
+ jQuery('.wpsg_mod_crefopay_switchstatemapping').bind('click', function() {
+
+ jQuery('.wpsg_mod_crefopay_mnsstatemapping').toggle();
+
+ if (jQuery('.wpsg_mod_crefopay_mnsstatemapping').is(':visible')) jQuery(this).html('<?php echo __('Ausblenden', 'wpsg'); ?>');
+ else jQuery(this).html('<?php echo __('Bearbeiten', 'wpsg'); ?>');
+
+ return false;
+
+ } );
+
+ } ); + +/* ]]> */</script>
+
+<br />
+
+<?php echo wpsg_drawForm_Input('', __('Redirect URL', 'wpsg'), $this->view['url']['redirect_url'], array('readonly' => true, 'nohspc' => true)); ?>
+<?php echo wpsg_drawForm_Input('', __('Warenkorb URL', 'wpsg'), $this->view['url']['basket_url'], array('readonly' => true, 'nohspc' => true)); ?>
+<?php echo wpsg_drawForm_Input('', __('AGB URL', 'wpsg'), $this->view['url']['agb_url'], array('readonly' => true, 'nohspc' => true)); ?>
+<?php echo wpsg_drawForm_Input('', __('MNS URL', 'wpsg'), $this->view['url']['mns_url'], array('readonly' => true, 'nohspc' => true)); ?>
+<?php echo wpsg_drawForm_Input('', __('Jump URL', 'wpsg'), $this->view['url']['jump_url'], array('readonly' => true, 'nohspc' => true)); ?>
\ No newline at end of file |
