From 6094eeb372d0ed7111528e8bbaf13a62be92ab7d Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Thu, 2 May 2024 20:15:47 +0100 Subject: [PATCH] Fix re-submit invoice --- api/logics.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/api/logics.py b/api/logics.py index 20394400d..b69cab344 100644 --- a/api/logics.py +++ b/api/logics.py @@ -910,6 +910,12 @@ def update_invoice(cls, order, user, invoice, routing_budget_ppm): return False, payout["context"] if order.payout: + order.payout.concept = (LNPayment.Concepts.PAYBUYER,) + order.payout.type = (LNPayment.Types.NORM,) + order.payout.sender = (User.objects.get(username=ESCROW_USERNAME),) + order.payout.receiver = (user,) + order.payout.routing_budget_ppm = (routing_budget_ppm,) + order.payout.routing_budget_sats = (routing_budget_sats,) order.payout.invoice = invoice order.payout.status = LNPayment.Status.VALIDI order.payout.num_satoshis = num_satoshis