divanov11 / proshop_django

403 stars 426 forks source link

Solve payment method issue correctly #32

Open khalidfasely opened 1 year ago

khalidfasely commented 1 year ago

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.