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,