mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-03-27 02:37:13 +01:00
Merge pull request #386 from arcbtc/FastAPI
restored create invoice api endpoint
This commit is contained in:
commit
f958b00009
1 changed files with 2 additions and 2 deletions
|
@ -89,7 +89,7 @@ async def lnurl_response(
|
|||
response_class=HTMLResponse,
|
||||
name="lnurlpos.lnurl_callback",
|
||||
)
|
||||
async def lnurl_callback(paymentid: str = Query(None)):
|
||||
async def lnurl_callback(request: Request, paymentid: str = Query(None)):
|
||||
lnurlpospayment = await get_lnurlpospayment(paymentid)
|
||||
pos = await get_lnurlpos(lnurlpospayment.posid)
|
||||
if not pos:
|
||||
|
@ -110,7 +110,7 @@ async def lnurl_callback(paymentid: str = Query(None)):
|
|||
lnurlpospayment = await update_lnurlpospayment(
|
||||
lnurlpospayment_id=paymentid, payhash=payment_hash
|
||||
)
|
||||
success_action = pos.success_action(paymentid)
|
||||
success_action = pos.success_action(paymentid, request)
|
||||
|
||||
payResponse = {
|
||||
"pr": payment_request,
|
||||
|
|
Loading…
Add table
Reference in a new issue