aboutsummaryrefslogtreecommitdiffstats
path: root/lib/payments.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2025-03-05 17:24:55 +0000
committerAdam Soltys <[email protected]>2025-03-05 17:24:55 +0000
commit1411597923c5de50e804e564387ce51c5991f102 (patch)
treeab1ddc924acf839bbf59c83c9605dda63bb58493 /lib/payments.ts
parent1b83f8398d34994b62c88fada6dba6a183227cbe (diff)
downloadcoinos-server-1411597923c5de50e804e564387ce51c5991f102.tar.gz
coinos-server-1411597923c5de50e804e564387ce51c5991f102.zip
record payment_hash
Diffstat (limited to 'lib/payments.ts')
-rw-r--r--lib/payments.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/payments.ts b/lib/payments.ts
index ad39f81c..342b9641 100644
--- a/lib/payments.ts
+++ b/lib/payments.ts
@@ -173,6 +173,7 @@ export const credit = async ({
ref = "",
type = PaymentType.internal,
aid = undefined,
+ payment_hash = undefined,
}) => {
amount = parseInt(amount) || 0;
@@ -227,6 +228,7 @@ export const credit = async ({
rate,
currency,
memo,
+ payment_hash,
ref,
tip,
type,