RE: Final Checkout Button Message

dahammer2 <[email protected]>
Newsgroups gmane.comp.web.oscommerce.suggestions
Message-ID <4c4d900e2dfa942bb7affc22ad5ac8b7@osCommerce-Forums>
This message was sent from: Suggestions and Proposals
http://forums.oscommerce.com/viewtopic.php?p=184759#184759
----------------------------------------------------------------

I setup a gateway for a none oscommerce website once.
I had this same problem.. I vaguely recall doing something like

When they click on the button, have it call a javascript function to submit the form. You can put the javascript in the form tag, much like the contribution that removes image submit buttons

once they click on it, it sets a variable "formsubmit = true" and submit the form.

then if they click it again, check and see if this varible is true, if yes, ignore and don't resubmit.

I also made it submit to local page first with a message saying
"Your are being transferred to the payment gateway, this may take upto 30 seconds".
That way it quickly got them a response, and they were told to wait.
This local page automatically submitted the same data to the payment gateway.

This isn't a bad idea for a contribution.. certainly the javascript method would be very easy. But a quick response page might take some thought as it would have to be compatable with all payment modules..
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.