Added webhook for tickets

This commit is contained in:
benarc
2020-11-30 14:59:21 +00:00
parent 67e8c567a3
commit 16fff9899f
4 changed files with 30 additions and 14 deletions
+1 -1
View File
@@ -139,7 +139,7 @@ async def api_ticket_send_ticket(payment_hash):
payment = await wallet.get_payment(payment_hash)
await payment.set_pending(False)
ticket = await set_ticket_paid(payment_hash=payment_hash)
return jsonify({"paid": True, "ticket_id": ticket.id}), HTTPStatus.OK
return jsonify({"paid": True}), HTTPStatus.OK
return jsonify({"paid": False}), HTTPStatus.OK