adds atm check, so withdraw isnt cancelled on false call by wallets
This commit is contained in:
parent
96545380f7
commit
27bae6a0c6
1 changed files with 17 additions and 12 deletions
|
|
@ -184,7 +184,12 @@ async def lnurl_callback(
|
|||
raise HTTPException(
|
||||
status_code=HTTPStatus.FORBIDDEN, detail="lnurldevice not found."
|
||||
)
|
||||
if pr:
|
||||
if device.device == "atm":
|
||||
if not pr:
|
||||
raise HTTPException(
|
||||
status_code=HTTPStatus.FORBIDDEN, detail="No payment request"
|
||||
)
|
||||
else:
|
||||
if lnurldevicepayment.id != k1:
|
||||
return {"status": "ERROR", "reason": "Bad K1"}
|
||||
if lnurldevicepayment.payhash != "payment_hash":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue