Jump to content

Preventing Duplicate Order submissions (customer clicks 'Submit' on order TWICE)


Todddd

Recommended Posts

SHORT QUESTION:

After a customer clicks the 'Submit' button to complete their order, can we automatically gray-out / disable that final 'Submit' button to prevent accidental double-clicking or clicking 'Submit' again?  Clicking twice causes 2 duplicate orders to be submitted and processed.

 

DETAILED EXPLANATION:

At the final stage of an order process, after a customer clicks to complete their order, there's a 2-10 second delay as the server connects to authenticate the credit card and finalizes the order. During this time, there have been time when impatient customers think there's something wrong after a long delay and so they click Submit to again. This causes 2 orders to be processed. Same order. 2 different order #s. And 2 different confirmations.

Is there a way to gray-out / disable the final Submit button after the customer has clicked once? We do not want the customer to click twice. We realize during busy internet hours, the server may sometimes be slow, but clicking twice on the Submit button will only cause a duplicate transaction to hit their credit card.

I'm currently using CubeCart 6.2.2 -- not sure if this issue has been addressed/fixed already in future versions released.

 

 

Link to comment
Share on other sites

Ok, so you are having the customer stay on your site, however, Stripe loads onto your site its own payment form. Looking at /modules/gateway/Stripe/skin/form.php, at the bottom, I see two functions: enableButton and disableButton. The statements in this javascript imply that the "Make Payment" button does get disabled.

So,

"impatient customers think there's something wrong after a long delay and so they click Submit to again"

Are you sure it is the customer clicking (whoever's) "Submit" (as opposed to (Stripe's) 'Make Payment") that is causing the problem?

Do you imagine it could be that the customer might be clicking the browser's Back button?

Link to comment
Share on other sites

When looking in my version 2.1.1, the file /modules/gateway/Stripe/skin/form.php does not exist.

I then upgraded to version 2.3.0 -- I'm happy to see exactly what you referenced.  And it does indeed solve my problem ("Make Payment" becomes disabled/grayed-out and is replaced by "Please wait"). 

Thanks so much!  Have a great day.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...