I’m using authorize.net’s SIM approach, which needs a normal form to be submitted to their TLS host from the user’s browser. The setup is done on my server, I just need to create the form and auto-post it when the page loads.
I want it to be posted from the browser so that the user can then fill in the credit card information on authorize.net’s host and process the payments. I don’t want any of that credit card stuff on my server.
At this point in the process, there is no data for the user to enter, and no more choices, all that happened before we get to here.
Seems like a bit of jQuery to trigger the submit when onLoad() is done.
Is this the best way to approach the problem?
You don’t even need jQuery for this because it is so simple. As soon as the page loads with your form on it you just need it to auto-submit the form you. Placing this code at the bottom of the page will do this for you (assuming the form is named
myform):This can be easily adjusted to use jQuery if you’d like but it should give you the right idea.