Skip to content

Commit f6a3dd8

Browse files
committed
Grab basket object from build_submission(), not from request
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 #98, reported by Nigel Fletton.
1 parent 282c85c commit f6a3dd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paypal/express/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class RedirectView(CheckoutSessionMixin, RedirectView):
6161

6262
def get_redirect_url(self, **kwargs):
6363
try:
64-
basket = self.request.basket
64+
basket = self.build_submission()['basket']
6565
url = self._get_redirect_url(basket, **kwargs)
6666
except PayPalError as ppe:
6767
messages.error(

0 commit comments

Comments
 (0)