evershopcommerce / evershop

🛍️ NodeJS E-commerce Platform
https://evershop.io/
GNU General Public License v3.0
4.49k stars 1.24k forks source link

[BUG] Cart is disgarded after failed payment #623

Open mpenfold1987 opened 2 months ago

mpenfold1987 commented 2 months ago

Describe the bug When paying using Strip and testing failure etc if the page is refreshed the cart is empty requiring navigation back to item and entering cart details again, name address etc. and place order button doesn't go back to green to retry

To Reproduce Steps to reproduce the behavior: 1.add to cart 2.cart 3.checkout. 4.enter details 5.enter details 6.enter card number (failure)

  1. click order
  2. wait for red failure / declined
  3. refresh page

Expected behavior failure message --> place order button enabled again --> re enter card details etc failure message --> refresh --> cart still usable

Screenshots If applicable, add screenshots to help explain your problem.

Background (please complete the following information):

Additional context Add any other context about the problem here.

mpenfold1987 commented 2 months ago

image

mpenfold1987 commented 2 months ago

also order still processes ish

image