prusnak's suggestion
This commit is contained in:
@@ -23,7 +23,10 @@ async def wait_for_paid_invoices():
|
|||||||
|
|
||||||
|
|
||||||
async def on_invoice_paid(payment: Payment) -> None:
|
async def on_invoice_paid(payment: Payment) -> None:
|
||||||
if payment.extra and payment.extra.get("tag") != "shop":
|
if not payment.extra:
|
||||||
|
return
|
||||||
|
|
||||||
|
if payment.extra.get("tag") != "shop":
|
||||||
return
|
return
|
||||||
|
|
||||||
order = await get_shop_order_invoiceid(payment.payment_hash)
|
order = await get_shop_order_invoiceid(payment.payment_hash)
|
||||||
|
|||||||
Reference in New Issue
Block a user