From bbb274b6fd0f081825b3e403496887f96726815b Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 25 Feb 2024 17:54:04 -0800 Subject: add memo to email --- lib/payments.js | 1 + templates/payments/received.html | 6 ++++++ 2 files changed, 7 insertions(+) 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}} + {{#if payment.memo}} +
+ Memo: {{payment.memo}} +
+ {{/if}} +
{{payment.link}}
-- cgit v1.2.3