fix: handle extra updates for internal payments

This commit is contained in:
Vlad Stan
2022-12-22 11:12:19 +02:00
parent 4e8014a177
commit b56d08a70e
2 changed files with 17 additions and 10 deletions
+3 -2
View File
@@ -163,12 +163,13 @@ async def api_lnurl_callback(
r: httpx.Response = await client.post(link.webhook_url, **kwargs)
await update_payment_extra(
payment_hash,
{
hash=payment_hash,
extra={
"wh_success": r.is_success,
"wh_message": r.reason_phrase,
"wh_response": r.text,
},
outgoing=True,
)
except Exception as exc:
# webhook fails shouldn't cause the lnurlw to fail since invoice is already paid