From 8b23904d4d0b1d55bad2396c468d2802eecd4a44 Mon Sep 17 00:00:00 2001 From: Dominik Hebeler <dominik@hebeler.club> Date: Mon, 12 Jun 2023 12:27:33 +0200 Subject: [PATCH] fixed some payment method texts --- pass/lang/de/checkout.json | 8 ++++-- pass/public/images/paypal/card.svg | 45 +++++++++++------------------- pass/views/checkout/charge.ejs | 6 ++++ 3 files changed, 29 insertions(+), 30 deletions(-) diff --git a/pass/lang/de/checkout.json b/pass/lang/de/checkout.json index b69b7d2..91e3335 100644 --- a/pass/lang/de/checkout.json +++ b/pass/lang/de/checkout.json @@ -24,11 +24,14 @@ "label": "E-Mail Addresse", "description": "An diese Addresse werden Ihnen einmalig Informationen zu unserer Bankverbindung und eine Benachrichtigung bei Abschluss der Zahlung zugesendet." } + }, + "sofort": { + "name": "Überweisung" } }, "charge": { - "heading": "Zahlungsart wählen", "includes-vat": "inkl. 7% MwSt.", + "heading": "Zahlungsart wählen", "amount": "Wählen Sie eines der folgenden Tokenpakete aus, um den Bestellvorgang zu starten.", "month_one": "{{count}} Monat", "month_other": "{{count}} Monate", @@ -52,7 +55,8 @@ "card": { "number": "Kartennummer", "expiration": "Gültig bis", - "cvv": "CVV" + "cvv": "CVV", + "label": "Kredit- / Debitkarte" }, "submit": "Zahlung durchführen", "loading": "Zahlungsmethode wird geladen" diff --git a/pass/public/images/paypal/card.svg b/pass/public/images/paypal/card.svg index 75aa232..4043232 100644 --- a/pass/public/images/paypal/card.svg +++ b/pass/public/images/paypal/card.svg @@ -7,12 +7,12 @@ xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="150" - height="50" - viewBox="0 0 150 50" + width="43.465797" + height="33.806732" + viewBox="0 0 43.465797 33.806732" version="1.1" id="svg1123" - sodipodi:docname="card_de.svg" + sodipodi:docname="card.svg" inkscape:version="1.0.2 (e86c870879, 2021-01-15)"> <metadata id="metadata1129"> @@ -37,20 +37,25 @@ guidetolerance="10" inkscape:pageopacity="0" inkscape:pageshadow="2" - inkscape:window-width="1920" - inkscape:window-height="996" + inkscape:window-width="2560" + inkscape:window-height="1361" id="namedview1125" showgrid="false" inkscape:zoom="4.9652778" - inkscape:cx="91.928374" - inkscape:cy="21.152099" - inkscape:window-x="0" - inkscape:window-y="840" + inkscape:cx="78.713678" + inkscape:cy="13.055464" + inkscape:window-x="2560" + inkscape:window-y="480" inkscape:window-maximized="1" - inkscape:current-layer="svg1123" /> + inkscape:current-layer="g1704" + inkscape:document-rotation="0" + fit-margin-top="0" + fit-margin-left="0" + fit-margin-right="0" + fit-margin-bottom="0" /> <g id="g1704" - transform="translate(2.7918223,-0.3616617)"> + transform="translate(-10.422873,-8.4582962)"> <g stroke="none" stroke-width="1" @@ -68,21 +73,5 @@ id="Stroke-1" /> </g> </g> - <text - xml:space="preserve" - style="font-style:normal;font-weight:normal;font-size:13.3333px;line-height:1.25;font-family:sans-serif;fill:#000000;fill-opacity:1;stroke:none" - x="64.267097" - y="21.999041" - id="text1133"><tspan - sodipodi:role="line" - id="tspan1131" - x="64.267097" - y="21.999041" - style="font-size:13.3333px;fill:#333333;fill-opacity:1">Kredit- /</tspan><tspan - sodipodi:role="line" - x="64.267097" - y="38.665665" - style="font-size:13.3333px;fill:#333333;fill-opacity:1" - id="tspan1696">Debitkarte</tspan></text> </g> </svg> diff --git a/pass/views/checkout/charge.ejs b/pass/views/checkout/charge.ejs index 9162903..4d94488 100644 --- a/pass/views/checkout/charge.ejs +++ b/pass/views/checkout/charge.ejs @@ -86,6 +86,9 @@ </a> <a href="<%= baseDir _%>/key/<%= key.key.get_key() _%>/checkout/<%= checkout.amount _%>/micropayment/sofort#cash-payment-container" id="cash-payment" class="funding_source"> <img src="<%= baseDir _%>/images/sofort.svg" alt="Cash Payment"> + <span> + <%= req.t("payments.sofort.name", {ns: "checkout"}) _%> + </span> </a> </div> </div> @@ -99,6 +102,9 @@ </a> <a href="<%= baseDir _%>/key/<%= key.key.get_key() %>/checkout/<%= checkout.amount %>/paypal/card#paypal-checkout" id="card" class="funding_source"> <img src="<%= baseDir _%>/images/paypal/card.svg" alt="Credit Card Logo"> + <span> + <%= req.t("paypal.card.label", {ns: "checkout"}) _%> + </span> </a> <a href="<%= baseDir _%>/key/<%= key.key.get_key() %>/checkout/<%= checkout.amount %>/paypal/sepa#paypal-checkout" id="sepa" class="funding_source"> <img src="<%= baseDir _%>/images/paypal/sepa.svg" alt="SEPA Logo"> -- GitLab