From c97dd1f29ce5b97c74dc123fb07e552338b03715 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Dlouh=C3=BD?= Date: Fri, 22 Nov 2024 12:19:29 +0100 Subject: [PATCH] fix log warning if the payment is switching status out from confirmed --- payments_payu/provider.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/payments_payu/provider.py b/payments_payu/provider.py index 9609670..76dbbfd 100644 --- a/payments_payu/provider.py +++ b/payments_payu/provider.py @@ -597,7 +597,7 @@ def process_notification(self, payment, request): type(payment).objects.filter(pk=payment.pk).update( captured_amount=payment.captured_amount ) - if status == PaymentStatus.CONFIRMED and payment.status != status: + if payment.status == PaymentStatus.CONFIRMED and payment.status != status: logger.warning( "Suspicious status change of payment %s: %s -> %s", payment.id,