aboutsummaryrefslogtreecommitdiffstats
path: root/lib/payments.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/payments.ts')
-rw-r--r--lib/payments.ts4
1 files changed, 4 insertions, 0 deletions
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);
};