diff options
| author | Adam Soltys <[email protected]> | 2025-09-06 16:46:39 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-09-06 16:46:39 -0700 |
| commit | 66ea0286057f43c699f4701cb4e444ff2308a414 (patch) | |
| tree | 2b712a8e12b9ce7c21baab1f63b21041c45eddc8 /lib/payments.ts | |
| parent | 780a7cca58f3e34140fd9430e2ae02145e4149e0 (diff) | |
| download | coinos-server-66ea0286057f43c699f4701cb4e444ff2308a414.tar.gz coinos-server-66ea0286057f43c699f4701cb4e444ff2308a414.zip | |
wip
Diffstat (limited to 'lib/payments.ts')
| -rw-r--r-- | lib/payments.ts | 4 |
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); }; |
