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

Checkout page should use query parameters to populate basket #121

Closed
4 tasks
noisecapella opened this issue Apr 5, 2019 · 0 comments · Fixed by #283
Closed
4 tasks

Checkout page should use query parameters to populate basket #121

noisecapella opened this issue Apr 5, 2019 · 0 comments · Fixed by #283
Assignees
Milestone

Comments

@noisecapella
Copy link

noisecapella commented Apr 5, 2019

The product id and optionally a coupon code should be provided by the page to populate the user's basket. The checkout page should read these parameters and PATCH /api/basket.

Acceptance Criteria:

  • If the user loads the checkout page with a query parameter for the product id, the basket items should be emptied and the product for that id should be added to the basket.
  • If a coupon code is in the query parameter it should be applied to the basket.
  • If one of the query parameters is invalid and a 400 is received, the basket will be left as is.
  • After a successful PATCH the query parameters should be removed from the URL
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 a pull request may close this issue.

2 participants