summaryrefslogtreecommitdiff
path: root/views/mods/mod_prepayment/order_done.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'views/mods/mod_prepayment/order_done.phtml')
-rw-r--r--views/mods/mod_prepayment/order_done.phtml17
1 files changed, 16 insertions, 1 deletions
diff --git a/views/mods/mod_prepayment/order_done.phtml b/views/mods/mod_prepayment/order_done.phtml
index 6d3de2b..f2648ba 100644
--- a/views/mods/mod_prepayment/order_done.phtml
+++ b/views/mods/mod_prepayment/order_done.phtml
@@ -14,4 +14,19 @@
<?php echo wpsg_translate(__('Bank: #1#', 'wpsg'), $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_bank'))); ?><br />
<?php echo wpsg_translate(__('BIC-/SWIFT-Code: #1#', 'wpsg'), $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_swift'))); ?>
<br /><br />
-<?php echo wpsg_translate(__('Bitte als Betreff angeben: "#1#"', 'wpsg'), $this->view['wpsg_mod_prepayment']['subject']); ?> \ No newline at end of file
+<?php echo wpsg_translate(__('Bitte als Betreff angeben: "#1#"', 'wpsg'), $this->view['wpsg_mod_prepayment']['subject']); ?>
+
+<?php if (isset($this->view['wpsg_mod_prepayment']['subject'])) { ?>
+ <p><?php echo __('Wenn Ihre Banking-App Girocode unterstützt, können Sie diesen QRCode scannen.', 'wpsg'); ?></p>
+ <?php
+ require_once WPSG_PATH_LIB.'phpgirocode.class.php';
+
+ $img = $this->callMod('wpsg_mod_prepayment', 'genQRCode', array($this->view['basket']['sum']['preis_gesamt_brutto'],
+ $this->view['wpsg_mod_prepayment']['subject'], 8, PhpGirocode::OUTPUT_BASE64));
+ ?>
+ <img src="data:image/gif;base64,<?php echo $img; ?>" alt="" />
+
+ <pre style="display:none;"><?php echo $this->callMod('wpsg_mod_prepayment', 'genQRCode', array($this->view['basket']['sum']['preis_gesamt_brutto'],
+ $this->view['wpsg_mod_prepayment']['subject'], 8, PhpGirocode::OUTPUT_TEST));
+ ?></pre>
+<?php } ?> \ No newline at end of file