From a6f0504cea28e32179b499392da6942b49b4eeae Mon Sep 17 00:00:00 2001 From: Arc <33088785+arcbtc@users.noreply.github.com> Date: Tue, 25 Feb 2020 19:50:59 +0000 Subject: [PATCH] Update views_api.py --- lnbits/extensions/tpos/views_api.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lnbits/extensions/tpos/views_api.py b/lnbits/extensions/tpos/views_api.py index cfe744f..a03dcf8 100644 --- a/lnbits/extensions/tpos/views_api.py +++ b/lnbits/extensions/tpos/views_api.py @@ -32,6 +32,8 @@ def api_tpos(): if "ERROR" in r_json: return jsonify({"status": "ERROR", "reason": r_json["ERROR"]}), 400 - return jsonify({"status": "TRUE"}), 200 + return jsonify({"status": "TRUE","pay_req": r_json["pay_req"] ,"payment_hash": r_json["payment_hash"] }), 200 + +