Skip to content
Snippets Groups Projects
Commit 5686fb38 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

add directbanking payment method

parent 4da1e316
No related branches found
No related tags found
No related merge requests found
Pipeline #8452 passed
pass/public/images/directbanking.png

2.89 KiB

......@@ -93,6 +93,11 @@ router.use("/:service", (req, res, next) => {
privacy_url = "https://resources.micropayment.de/billing/documents/privacy-policy/debit/debit-gmbh-de.pdf";
privacy_url_text = "Micropayment";
break;
case "directbanking":
subdomain = "directbanking";
servicename = "sofort";
privacy_url = "https://resources.micropayment.de/billing/documents/privacy-policy/sofort/sofort-gmbh-de.pdf";
privacy_url_text = "Micropayment";
}
let payment_window_url = new URL(
......
......@@ -32,10 +32,13 @@
<%_ } else if(checkout.payment.provider==="micropayment" ) { _%>
<%_ if(checkout.payment.micropayment.funding_source=="prepay" ) { _%>
<%= req.t("payments.prepay.name", {ns: "checkout" }) %>
<%_ } else { _%>
<%_ } else if(checkout.payment.micropayment.funding_source=="directbanking") { _%>
<img src="<%= baseDir _%>/images/<%= checkout.payment.micropayment.funding_source %>.png"
alt="<%= checkout.payment.micropayment.funding_source %> Logo">
<%_ } else { _%>
<img src="<%= baseDir _%>/images/<%= checkout.payment.micropayment.funding_source %>.svg"
alt="<%= checkout.payment.micropayment.funding_source %> Logo">
<%_ } _%>
<%_ } _%>
<%_ } else if(checkout.payment.provider==="cash" ) { _%>
<img src="<%= baseDir _%>/images/letter.svg" alt="Cash Payment" class="dark">
<span>
......@@ -104,6 +107,10 @@
<div class="payment-group-container">
<label for="payment-group-micropayment">MicroPayment</label>
<div id="anonymous-payments" class="payment-group">
<a href="<%= baseDir _%>/key/<%= key.key.get_key() _%>/checkout/<%= checkout.amount _%>/micropayment/directbanking#cash-payment-container"
id="cash-payment" class="funding_source">
<img src="<%= baseDir _%>/images/directbanking.png" alt="SEPA Direct Debit Payment">
</a>
<a href="<%= baseDir _%>/key/<%= key.key.get_key() _%>/checkout/<%= checkout.amount _%>/micropayment/prepay#cash-payment-container"
id="prepay-payment" class="funding_source">
<span>
......
......@@ -110,6 +110,11 @@
<%= req.t("payments.prepay.name", {ns: "checkout" }) _%>
</div>
</div>
<div class="payment-method">
<div>
<img src="<%= baseDir _%>/images/directbanking.png" alt="Onlinebanking Logo" />
</div>
</div>
<div class="payment-method">
<div>
<img src="<%= baseDir _%>/images/paypal/sepa.svg" alt="SEPA Logo" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment