u
This commit is contained in:
parent
ad7bba60d3
commit
a03033a851
1 changed files with 8 additions and 3 deletions
|
|
@ -69,7 +69,12 @@ async def lnurl_callback(cp_id):
|
||||||
memo=cp.lnurl_title,
|
memo=cp.lnurl_title,
|
||||||
webhook="/copilot/api/v1/copilot/hook/" + cp_id + "/" + str(amount_received),
|
webhook="/copilot/api/v1/copilot/hook/" + cp_id + "/" + str(amount_received),
|
||||||
description_hash=hashlib.sha256((str(cp.lnurl_title)).encode("utf-8")).digest(),
|
description_hash=hashlib.sha256((str(cp.lnurl_title)).encode("utf-8")).digest(),
|
||||||
# extra={"tag": "copilot", "comment": comment},
|
extra={"tag": "copilot", "comment": comment},
|
||||||
)
|
)
|
||||||
|
resp = LnurlPayActionResponse(
|
||||||
return jsonify(pr=payment_request, success_action=None, routes=[])
|
pr=payment_request,
|
||||||
|
success_action=success_action,
|
||||||
|
routes=[],
|
||||||
|
)
|
||||||
|
print(payment_request)
|
||||||
|
return jsonify(resp.dict())
|
||||||
Loading…
Add table
Add a link
Reference in a new issue