Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PayPal: Perform full refund if amount=None #411

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

radekholy24
Copy link

@radekholy24 radekholy24 commented Apr 25, 2024

Since PayPal does support refunding without an amount specified and django-payment's API as well, it makes sense to me.

The benefit is that for various reasons the local copy of the payment (BasePayment.captured_amount) may get easily desynchronized with the payment gateway (e.g. bugs like this #309 (see #412)). This performs the full refund regardless of the BasePayment.captured_amount.

This change will have an effect only if #401 gets fixed (see #410) but it won't hurt otherwise too.

Feel free to request any necessary changes 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant