npm install
In the project directory, you can run:
npm start
- View the app at localhost:3000
- Run through a test scenario with test card numbers
- After a successful payment, verify logged paymentintent success at:
https://yongfook-stripe-intent-server.herokuapp.com/api/v1/orders
I felt that these items fell outside the scope of this task but if I were to make this production-ready, I might work on:
- UI-based validation messages rather than alert-based
- Choose number of items to order
- Give user a visual confirmation receipt e.g. order number etc