From 1735cc0d66ee0790bef238ff38758dd7d481f1de Mon Sep 17 00:00:00 2001 From: benarc Date: Fri, 19 Jan 2024 09:25:17 +0000 Subject: [PATCH] cant get invoice listener firing --- __pycache__/tasks.cpython-39.pyc | Bin 1282 -> 1358 bytes tasks.py | 3 ++- templates/myextension/index.html | 22 ++++++++++++++-------- 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/__pycache__/tasks.cpython-39.pyc b/__pycache__/tasks.cpython-39.pyc index c4ca1db4d4c2c0457cace85f8a77b4cf60563ed4..2b6955b8e1597736fdeb6aa8952773b0b686c95c 100644 GIT binary patch delta 299 zcmZqTI>*JE$ji&cz`(%3WxFc%-$vd_rusz;3=Aa<3m8)v7cw$3)G%Z*EnrSzTF98f zoXuP$m%6s0DoW|pODZp8`m`f7VZ*lupx=z+-_TuF$Vq#!mxW$^1npB!Txr#Z8_ZByjzR5S4ZP*n+ M;lju@S&HQa0ASlt8~^|S delta 223 zcmX@d)x^b{$ji&cz`(!|!?H9rd?RlqQ~eAE28J4jEQSS)DU1slQ<$=ui$qcwf?;CJ z3mIz}YZ!|)ycn7oOPFdHn;AVBQW!iKYME-7itRw6DJ(TiSS1K4Vaj3$sjOkh;;3QB;!M$Eo5NDeQo>ckSi)Vy(#+V* z1TmhG0ptixcE4N9C5h>`xN|F0C#N!dG4f2_!yLt0B*wtNFj<+!hE)#ao5^V`F91~M BGf4md diff --git a/tasks.py b/tasks.py index 9e1b0de..0304cce 100644 --- a/tasks.py +++ b/tasks.py @@ -29,7 +29,8 @@ async def wait_for_paid_invoices(): # do somethhing when an invoice related top this extension is paid async def on_invoice_paid(payment: Payment) -> None: - if payment.extra.get("tag") != "myextension": + logger.debug("payment received for myextension extension") + if payment.extra.get("tag") != "MyExtension": return myextension_id = payment.extra.get("tempId") diff --git a/templates/myextension/index.html b/templates/myextension/index.html index 61baace..6d6029f 100644 --- a/templates/myextension/index.html +++ b/templates/myextension/index.html @@ -96,7 +96,7 @@ - +