Skip to content

Commit

Permalink
fix log warning if the payment is switching status out from confirmed
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrDlouhy committed Nov 22, 2024
1 parent 9af5fe2 commit c97dd1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion payments_payu/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c97dd1f

Please sign in to comment.