From a03033a85158b38ae836e2a7e83d376800380486 Mon Sep 17 00:00:00 2001 From: Ben Arc Date: Fri, 16 Apr 2021 21:41:24 +0100 Subject: [PATCH] u --- lnbits/extensions/copilot/lnurl.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lnbits/extensions/copilot/lnurl.py b/lnbits/extensions/copilot/lnurl.py index b98f8ef9..cc9007c5 100644 --- a/lnbits/extensions/copilot/lnurl.py +++ b/lnbits/extensions/copilot/lnurl.py @@ -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=[]) \ No newline at end of file + resp = LnurlPayActionResponse( + pr=payment_request, + success_action=success_action, + routes=[], + ) + print(payment_request) + return jsonify(resp.dict()) \ No newline at end of file