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

Basket needs to be frozen while customer is at PayPal's site #24

Closed
wants to merge 3 commits into from

Conversation

codeinthehole
Copy link
Contributor

At the moment, the library is vulnerable to basket manipulation while the customer is on the PayPal site, submitting payment information.

This involves some trickyness with the templates as the default
preview.html wants to render the open basket (which is injected into the
template context via the basket middleware).  We duplicate some of the
basket template so we can render an alternative basket (the frozen one).
_("No basket was found that corresponds to your "
"PayPal transaction"))

return self.submit(basket, order_kwargs=order_kwargs)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Basket is not available if the get fails, is it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well spotted.

@codeinthehole
Copy link
Contributor Author

Now merged into master

@codeinthehole codeinthehole deleted the issue/24/freeze-baskets branch November 6, 2013 15:14
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.

2 participants