This commit is contained in:
Ben Arc 2021-04-16 21:41:24 +01:00
parent ad7bba60d3
commit a03033a851

View File

@ -69,7 +69,12 @@ async def lnurl_callback(cp_id):
memo=cp.lnurl_title,
webhook="/copilot/api/v1/copilot/hook/" + cp_id + "/" + str(amount_received),
description_hash=hashlib.sha256((str(cp.lnurl_title)).encode("utf-8")).digest(),
# extra={"tag": "copilot", "comment": comment},
extra={"tag": "copilot", "comment": comment},
)
return jsonify(pr=payment_request, success_action=None, routes=[])
resp = LnurlPayActionResponse(
pr=payment_request,
success_action=success_action,
routes=[],
)
print(payment_request)
return jsonify(resp.dict())