Skip to content

Commit

Permalink
new payment type
Browse files Browse the repository at this point in the history
  • Loading branch information
arcbtc committed Nov 14, 2024
1 parent 751e2dd commit 0ea6b50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions views_lnurl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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},
}

0 comments on commit 0ea6b50

Please sign in to comment.