May 2018
Intermediate to advanced
470 pages
13h 54m
English
With the order placed and the cart emptied, the user is redirected to the order view that will show them the details of the order just placed.
mern-marketplace/client/cart/PlaceOrder.js:
if (this.state.redirect) { return (<Redirect to={'/order/' + this.state.orderId}/>)}
This will indicate that the checkout process has been completed with a successful call to the create order API that we will set up in the server to create and store orders in the database.
Read now
Unlock full access