lnurlpos v2 lnurl endpoint.

compatible with the phone app and updated device.
This commit is contained in:
fiatjaf
2021-12-14 17:00:20 -03:00
parent 1609280f53
commit 09990450b7
5 changed files with 88 additions and 45 deletions
-10
View File
@@ -35,16 +35,6 @@ class lnurlposs(BaseModel):
async def lnurlpay_metadata(self) -> LnurlPayMetadata:
return LnurlPayMetadata(json.dumps([["text/plain", self.title]]))
def success_action(
self, paymentid: str, req: Request
) -> Optional[LnurlPaySuccessAction]:
return UrlAction(
url=req.url_for("lnurlpos.displaypin", paymentid=paymentid),
description="Check the attached link",
)
class lnurlpospayment(BaseModel):
id: str
posid: str