Satspay display link

This commit is contained in:
benarc
2021-02-23 20:42:24 +00:00
parent 5c894ff707
commit 569f43fe81
4 changed files with 66 additions and 34 deletions
+2 -2
View File
@@ -16,6 +16,6 @@ async def index():
@satspay_ext.route("/<charge_id>")
async def display(charge_id):
link = get_payment(charge_id) or abort(HTTPStatus.NOT_FOUND, "Charge link does not exist.")
charge = get_charge(charge_id) or abort(HTTPStatus.NOT_FOUND, "Charge link does not exist.")
return await render_template("satspay/display.html", link=link)
return await render_template("satspay/display.html", charge=charge)