diff options
| author | Adam Soltys <[email protected]> | 2025-09-08 09:26:51 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-09-08 09:26:51 -0700 |
| commit | 440991e905586242e5b9b1bb53b4dbdb36f5f3fb (patch) | |
| tree | 90aae1ccbb81a8dacc92a58c220a21310f9f0bed /lib/payments.ts | |
| parent | f57530bde82864d02386c1bbefc950bfff8711d3 (diff) | |
| parent | b2f88134a3828d2df7271c7d0ae4219e5e6f7d56 (diff) | |
| download | coinos-server-440991e905586242e5b9b1bb53b4dbdb36f5f3fb.tar.gz coinos-server-440991e905586242e5b9b1bb53b4dbdb36f5f3fb.zip | |
Merge branch 'square'
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..be801622 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); + + squarePayment(p, user); + l(username, "received", p.type, p.amount); callWebhook(inv, p); }; |
