mirror of
https://github.com/lnbits/lnbits.git
synced 2025-10-11 04:52:34 +02:00
Merge pull request #1300 from lnbits/refactor/payment_extra_addition
refactor: remove remaining checks, as in #1280
This commit is contained in:
@@ -19,8 +19,6 @@ 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 not payment.extra.get("refund"):
|
if not payment.extra.get("refund"):
|
||||||
return
|
return
|
||||||
|
@@ -22,8 +22,6 @@ 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") != "charge":
|
if payment.extra.get("tag") != "charge":
|
||||||
# not a charge invoice
|
# not a charge invoice
|
||||||
|
Reference in New Issue
Block a user