From 0ea6b50847cf1d427d1ed9d9f064d37f8c84f4b5 Mon Sep 17 00:00:00 2001 From: Arc Date: Thu, 14 Nov 2024 14:15:50 +0000 Subject: [PATCH] new payment type --- views_lnurl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views_lnurl.py b/views_lnurl.py index 7b16910..4714d9f 100644 --- a/views_lnurl.py +++ b/views_lnurl.py @@ -50,7 +50,7 @@ async def api_lnurl_pay_cb( if not eightball: return {"status": "ERROR", "reason": "No eightball found"} - _, payment_request = await create_invoice( + payment = await create_invoice( wallet_id=eightball.wallet, amount=int(amount / 1000), memo=eightball.name, @@ -63,7 +63,7 @@ async def api_lnurl_pay_cb( ) random_word = random.choice(eightball.wordlist.split("\n")) return { - "pr": payment_request, + "pr": payment.bolt11, "routes": [], "successAction": {"tag": "message", "message": random_word}, }