Lnurl all-father, please let this work

This commit is contained in:
Ben Arc
2021-04-16 20:42:37 +01:00
parent 9ec3fea73c
commit 7b4bf3cdc0
3 changed files with 36 additions and 43 deletions
+3 -4
View File
@@ -66,10 +66,9 @@ async def lnurl_callback(cp_id):
wallet_id=cp.wallet,
amount=int(amount_received / 1000),
memo=cp.lnurl_title,
webhook="/copilot/api/v1/copilot/hook/" + cp_id,
webhook=url_for("copilot.api_copilot_hooker", cp_id=cp_id, amount=int(amount_received / 1000), _external=True),
description_hash=hashlib.sha256((cp.lnurl_title).encode("utf-8")).digest(),
extra={"tag": "copilot", "comment": comment},
)
print(jsonify(pr=payment_request, success_action=None, routes=[], disposable=None))
print(["pr"=payment_request, "success_action"=None, "routes"=[], "disposable"=None])
return jsonify(pr=payment_request, success_action=None, routes=[], disposable=None)
return jsonify(pr=payment_request, success_action=None, routes=[])