support totp confirmation method.

This commit is contained in:
fiatjaf
2021-03-14 14:30:08 -03:00
parent d9b9d1e9b2
commit a653a5327b
9 changed files with 147 additions and 30 deletions
+5 -1
View File
@@ -61,6 +61,10 @@ async def lnurl_callback(item_id):
extra={"tag": "offlineshop", "item": item.id},
)
resp = LnurlPayActionResponse(pr=payment_request, success_action=item.success_action(shop, payment_hash), routes=[])
resp = LnurlPayActionResponse(
pr=payment_request,
success_action=item.success_action(shop, payment_hash) if shop.method else None,
routes=[],
)
return jsonify(resp.dict())