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

added link to paypal transaction

parent ac6a2457
No related branches found
No related tags found
No related merge requests found
Pipeline #7761 passed
...@@ -372,6 +372,13 @@ router.use("/key/:key", (req, res, next) => { ...@@ -372,6 +372,13 @@ router.use("/key/:key", (req, res, next) => {
null, null,
4 4
); );
let host = "www.paypal.com";
if (process.env.NODE_ENV == "development") {
host = "sandbox.paypal.com";
}
payments[
j
].payment_processor_id = `<a href=\"https://${host}/activity/payment/${payments[j].payment_processor_id}\" target=\"_blank\">${payments[j].payment_processor_id}</a>`;
} }
res.locals.payments.push(payments[j]); res.locals.payments.push(payments[j]);
} }
......
...@@ -111,11 +111,11 @@ ...@@ -111,11 +111,11 @@
<div class="payment_created_at_name">Eingangsdatum</div> <div class="payment_created_at_name">Eingangsdatum</div>
<div class="payment_id"><%= payments[i].id _%></div> <div class="payment_id"><%= payments[i].id _%></div>
<div class="payment_public_id"><%= payments[i].public_id _%></div> <div class="payment_public_id"><%= payments[i].public_id _%></div>
<div class="payment_price"><%= payments[i].price + "€" _%></div> <div class="payment_price"><%_ payments[i].price + "€" _%></div>
<div class="payment_processor_id_id"> <div class="payment_processor_id_id">
<%= payments[i].payment_processor_id _%> <%- payments[i].payment_processor_id _%>
</div> </div>
<div class="payment_processor_id_id"> <div class="payment_created_at_id">
<%= payments[i].created_at.format("DD.MM.YYYY HH:mm:ss") _%> <%= payments[i].created_at.format("DD.MM.YYYY HH:mm:ss") _%>
</div> </div>
<details class="payment_processor_data"> <details class="payment_processor_data">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment