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

The Checkout Process #7

Closed
4 tasks
bradwestfall opened this issue Nov 12, 2019 · 4 comments
Closed
4 tasks

The Checkout Process #7

bradwestfall opened this issue Nov 12, 2019 · 4 comments
Assignees

Comments

@bradwestfall
Copy link
Collaborator

bradwestfall commented Nov 12, 2019

This includes lots of things:

  • The whole checkout page
  • We need to have a billing and shipping form - this would be good for a lesson on controlled/uncontrolled state we used to do in our old curriculum
  • Maybe a mock credit card form with a specific number that succeeds and one that fails the submission
  • If we want to take it far, we can even clear the cart, deduct inventory from the database, and then even have UI for showing "out of stock"
@bradwestfall
Copy link
Collaborator Author

I'm almost done with this

@cassidoo
Copy link
Member

If we really want the credit card stuff to "work" or validate things, it's pretty quick to implement the Luhn algo: https://en.wikipedia.org/wiki/Luhn_algorithm
(but this might be overkill)

@bradwestfall
Copy link
Collaborator Author

Yea I was thinking it might be best to have a pseudo checkout process. The forms are duds and at the end it just clears the cart and says "Your order is on its way".

Although I was thinking about adding some of your order info do the database so we can have a "my order history" when your logged in. As of now, there's not much to do when you're logged in

@bradwestfall
Copy link
Collaborator Author

Maybe we'll finish this later, not necessary for the workshop material

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants