feat: pass previous memo through (#31)
now the memo of the payment has this form
`{memo;memo_parent_payment;payment_hash_parent_payment}
This commit is contained in:
parent
0bf1557ce7
commit
4e2ebb7944
1 changed files with 3 additions and 1 deletions
4
tasks.py
4
tasks.py
|
|
@ -46,7 +46,9 @@ async def on_invoice_paid(payment: Payment) -> None:
|
|||
if target.percent > 0:
|
||||
amount_msat = int(payment.amount * target.percent / 100)
|
||||
memo = (
|
||||
f"Split payment: {target.percent}% for {target.alias or target.wallet}"
|
||||
f"Split payment: {target.percent}% "
|
||||
f"for {target.alias or target.wallet}"
|
||||
f";{payment.memo};{payment.payment_hash}"
|
||||
)
|
||||
|
||||
if "@" in target.wallet or "LNURL" in target.wallet:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue