-
Notifications
You must be signed in to change notification settings - Fork 214
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 Express redirect fails when using DeferredTax mixin #98
Comments
Wow, I just wasted an entire day on this same exact problem, thinking something was wrong with my own CheckoutSessionMixin. @nfletton, thanks oodles for tracking it down. @maikhoepfel, it looks like this breaks pretty critical functionality -- any chance to get this issue reviewed? |
When the RedirectView is used in combination with another CheckoutSessionMixin defined for a DeferredTax taxation strategy, then submission's basket object has critical tax information, whereas request.basket does not. Change RedirectView's basket reference to point to build_submission()['basket']. Fixes django-oscar#98, reported by Nigel Fletton.
When the RedirectView is used in combination with another CheckoutSessionMixin defined for a DeferredTax taxation strategy, then submission's basket object has critical tax information, whereas request.basket does not. Change RedirectView's basket reference to point to build_submission()['basket']. Fixes django-oscar#98, reported by Nigel Fletton.
Still a problem. Because using Express checkout means your not doing shipping parameters and when you don't do that means taxes isnt calculated. That's if your using an USstrategy. So what can we do about this situation? |
When the RedirectView is used in combination with another CheckoutSessionMixin defined for a DeferredTax taxation strategy, then submission's basket object has critical tax information, whereas request.basket does not. Change RedirectView's basket reference to point to build_submission()['basket']. Fixes django-oscar/django-oscar-paypal#98, reported by Nigel Fletton.
When the RedirectView is used in combination with another CheckoutSessionMixin defined for a DeferredTax taxation strategy, then submission's basket object has critical tax information, whereas request.basket does not. Change RedirectView's basket reference to point to build_submission()['basket']. Fixes django-oscar/django-oscar-paypal#98, reported by Nigel Fletton.
The following error occurs when clicking the PayPal icon at the payment step of the checkout process when using the DeferredTax mixin:
Bearing in mind this is the first time I've used Oscar, the problem appears to be that the PayPal Express RedirectView uses the basket in the request object rather than the basket after it has had tax applied by the the overridden build_submission() method in CheckoutSessionMixin.
The solution that works in my scenario is to call build_submission() directly to get the basket with deferred taxes calculated.
Old code:
Patched code:
The text was updated successfully, but these errors were encountered: