aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-02-25 17:54:04 -0800
committerAdam Soltys <[email protected]>2024-02-25 17:54:04 -0800
commitbbb274b6fd0f081825b3e403496887f96726815b (patch)
tree9a29cae6c7fe72719ef009883fefc55a6fcc9727
parentfee415dd6c5ee83159990a5e7d59184b0ab1ec96 (diff)
downloadcoinos-server-bbb274b6fd0f081825b3e403496887f96726815b.tar.gz
coinos-server-bbb274b6fd0f081825b3e403496887f96726815b.zip
add memo to email
-rw-r--r--lib/payments.js1
-rw-r--r--templates/payments/received.html6
2 files changed, 7 insertions, 0 deletions
diff --git a/lib/payments.js b/lib/payments.js
index d9ee58b6..2d1bf6c0 100644
--- a/lib/payments.js
+++ b/lib/payments.js
@@ -278,6 +278,7 @@ export let completePayment = async (p, user) => {
tip: p.tip ? fmt(p.tip) : undefined,
fiat: f(fiat(p.amount, p.rate), p.currency),
fiatTip: p.tip ? f(fiat(p.tip, p.rate), p.currency) : undefined,
+ memo: p.memo,
items:
p.items &&
p.items.map((i) => {
diff --git a/templates/payments/received.html b/templates/payments/received.html
index 61888742..612f253e 100644
--- a/templates/payments/received.html
+++ b/templates/payments/received.html
@@ -24,6 +24,12 @@
{{payment.amount}} + {{payment.tip}}
</div>
+ {{#if payment.memo}}
+ <div style="margin-bottom: 10px">
+ Memo: {{payment.memo}}
+ </div>
+ {{/if}}
+
<div style="margin-bottom: 10px">
<a href="{{payment.link}}">{{payment.link}}</a>
</div>