From 66ea0286057f43c699f4701cb4e444ff2308a414 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 6 Sep 2025 16:46:39 -0700 Subject: wip --- lib/payments.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/payments.ts') diff --git a/lib/payments.ts b/lib/payments.ts index 655786fd..bd045f98 100644 --- a/lib/payments.ts +++ b/lib/payments.ts @@ -6,6 +6,7 @@ import ln from "$lib/ln"; import { err, l, warn } from "$lib/logging"; import { handleZap } from "$lib/nostr"; import { notify, nwcNotify } from "$lib/notifications"; +import { squarePayment } from "$lib/square"; import { SATS, btc, @@ -320,6 +321,9 @@ export const completePayment = async (inv, p, user) => { nwcNotify(p); notify(p, user, withdrawal); + + if (user.square) squarePayment(user); + l(username, "received", p.type, p.amount); callWebhook(inv, p); }; -- cgit v1.2.3