Merge pull request #366 from arcbtc/FastAPI

Some payment fixes
This commit is contained in:
Arc 2021-10-22 09:25:23 +01:00 committed by GitHub
commit 7102571c3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,6 +73,7 @@ async def create_lnurlpospayment(
posid: str,
payload: Optional[str] = None,
pin: Optional[str] = None,
payhash: Optional[str] = None,
sats: Optional[int] = 0,
) -> lnurlpospayment:
lnurlpospayment_id = urlsafe_short_hash()
@ -83,11 +84,12 @@ async def create_lnurlpospayment(
posid,
payload,
pin,
payhash,
sats
)
VALUES (?, ?, ?, ?, ?)
VALUES (?, ?, ?, ?, ?, ?)
""",
(lnurlpospayment_id, posid, payload, pin, sats),
(lnurlpospayment_id, posid, payload, pin, payhash, sats),
)
return await get_lnurlpospayment(lnurlpospayment_id)