babelattke / tastyigniter-green

TastyIgniter Green Theme
3 stars 0 forks source link

No checkout button disablement on Stripe payment #7

Open bisonator1 opened 3 years ago

bisonator1 commented 3 years ago

Currently there doesn't seem to be any disablement of the checkout button or user visual cue that the payment is being processed. This means that sometimes customers think the button was not pressed and try again. The result is that the order goes through, but the user stays on the checkout page and gets an error message saying to try again.

My resolution for this was to disable the button on click and during the AJAX, then re-enable if the payment failed. I also add in a loading spinner image with a background with opacity to show the user that the payment is being processed.