proshop_django
proshop_django copied to clipboard
Solve payment method issue correctly
Instead of redirecting the user when he's refreshing the placeorder page to the payment page again and making him choose the payment method and then continue, as you did in the course, we instead initialize the state with the paymentMethod value from the localStorage this way the user when he refreshes the placeorder page doesn't get redirected to the payment page.