From 681e2e6f792377c608f269c62caae7575ecd8f70 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 15 Oct 2020 12:49:10 -0700 Subject: support lnurl pay comments --- routes/lnurl.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routes/lnurl.js b/routes/lnurl.js index 17aeca53..d978e50d 100644 --- a/routes/lnurl.js +++ b/routes/lnurl.js @@ -162,10 +162,11 @@ app.post( const { user } = req; const { amount, + comment, params: { callback, k1 } } = req.body; - const url = `${callback}?amount=${amount * 1000}`; + const url = `${callback}?amount=${amount * 1000}&comment=${comment}`; try { const parts = callback.split("/"); -- cgit v1.2.3