From 4bde8faf1b9d91898447bdf2c63b0afd227f978c Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 9 Jul 2021 12:58:14 -0700 Subject: add webhooks to invoices --- routes/lightning/receive.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'routes/lightning') diff --git a/routes/lightning/receive.js b/routes/lightning/receive.js index 55193d2d..32c54de6 100644 --- a/routes/lightning/receive.js +++ b/routes/lightning/receive.js @@ -69,6 +69,8 @@ const handlePayment = async msg => { payment = payment.get({ plain: true }); payment.account = account.get({ plain: true }); + await callWebhook(invoice, payment); + emit(user.username, "payment", payment); emit(user.username, "account", payment.account); notify(user, `Received ${total} SAT`); -- cgit v1.2.3