Skip to content

Commit

Permalink
Merge branch 'master' into refunds_are_delayed
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrDlouhy authored May 14, 2024
2 parents a7a1e60 + b86bbd3 commit 32f26a5
Show file tree
Hide file tree
Showing 4 changed files with 250 additions and 40 deletions.
9 changes: 7 additions & 2 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@
History
-------

Unreleased
**********

1.4.2 (2024-05-14)
******************
* fix multiple deduction of the refund amount from `payment.captured_amount`
* change statuses of payments refunded with an amount greater than `payment.captured_amount` to `REFUNDED` instead of just deducing `captured_amount`

1.4.1 (2024-05-14)
******************
* fix captured_amount not being saved when processing data

1.4.0 (2024-04-12)
******************
* fix backward compatibility by making PayuProvider's get_refund_description argument optional
Expand Down
2 changes: 1 addition & 1 deletion payments_payu/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.4.0"
__version__ = "1.4.1"
3 changes: 3 additions & 0 deletions payments_payu/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,9 @@ def process_notification(self, payment, request):
data["order"]["totalAmount"],
data["order"]["currencyCode"],
)
payment.objects.filter(pk=payment.pk).update(
captured_amount=payment.captured_amount
)
payment.change_status(status)
return HttpResponse("ok", status=200)
return HttpResponse("not ok", status=500)
Expand Down
Loading

0 comments on commit 32f26a5

Please sign in to comment.