mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-24 06:48:02 +01:00
before merging main
This commit is contained in:
parent
58b6b9505d
commit
4ae88ad3b9
3 changed files with 9 additions and 0 deletions
|
@ -22,6 +22,9 @@ async def wait_for_paid_invoices():
|
||||||
|
|
||||||
|
|
||||||
async def on_invoice_paid(payment: Payment) -> None:
|
async def on_invoice_paid(payment: Payment) -> None:
|
||||||
|
if not payment.extra:
|
||||||
|
return
|
||||||
|
|
||||||
if payment.extra.get("tag") != "livestream":
|
if payment.extra.get("tag") != "livestream":
|
||||||
# not a livestream invoice
|
# not a livestream invoice
|
||||||
return
|
return
|
||||||
|
|
|
@ -20,6 +20,9 @@ async def wait_for_paid_invoices():
|
||||||
|
|
||||||
|
|
||||||
async def on_invoice_paid(payment: Payment) -> None:
|
async def on_invoice_paid(payment: Payment) -> None:
|
||||||
|
if not payment.extra:
|
||||||
|
return
|
||||||
|
|
||||||
if payment.extra.get("tag") == "splitpayments" or payment.extra.get("splitted"):
|
if payment.extra.get("tag") == "splitpayments" or payment.extra.get("splitted"):
|
||||||
# already a splitted payment, ignore
|
# already a splitted payment, ignore
|
||||||
return
|
return
|
||||||
|
|
|
@ -20,6 +20,9 @@ async def wait_for_paid_invoices():
|
||||||
|
|
||||||
|
|
||||||
async def on_invoice_paid(payment: Payment) -> None:
|
async def on_invoice_paid(payment: Payment) -> None:
|
||||||
|
if not payment.extra:
|
||||||
|
return
|
||||||
|
|
||||||
if payment.extra.get("tag") != "tpos":
|
if payment.extra.get("tag") != "tpos":
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue