-
-
Notifications
You must be signed in to change notification settings - Fork 282
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
Conversation
38f5a69
to
95969ce
Compare
Can you rebase and fix merge conflicts? (sorry, the permissions on this repo won't allow me to just perform the merge myself) |
95969ce
to
e5f3d96
Compare
@WhyNotHugo, no problem. Rebased. |
Needs to be rebased due to #410 |
e5f3d96
to
b456e33
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #411 +/- ##
==========================================
- Coverage 78.42% 78.41% -0.01%
==========================================
Files 29 29
Lines 1979 1983 +4
Branches 244 244
==========================================
+ Hits 1552 1555 +3
- Misses 310 311 +1
Partials 117 117 ☔ View full report in Codecov by Sentry. |
Sure. Rebased, @WhyNotHugo |
Thanks! |
fix jazzband#411 Manually following process URL results in a crash
fix jazzband#411 Manually following process URL results in a crash
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 theBasePayment.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 🙏