Web Hosting Talk







View Full Version : Hello - Online order process form help!


blaze60
07-31-2004, 04:21 PM
Hi all, newbie poster here.

We just ordered a credit card payment gateway and we need to create a post script for online webhosting orders.

I need two forms. One that gathers user information, like account information such as domain, user information as billing, etc. This form would need a perl script that would process this information, submit it to us via email and recreate a second form. (I have created the html forms but I have yet to start the scripting.)

The second form would simply be a form that would post the billing information with a calculated webhosting cost.


This is a rather simple operation, but I am certain many of you have already done this. I am looking for perhaps better ideas or your experiences in dealing with this problem.

Also references to good perl cgi scripts such as matt's would be great, since I am a scripting newbie.

Thanks for your time.

Corey Bryant
07-31-2004, 05:26 PM
Welcome to the forums blaze60

Have you checked out http://www.scriptsearch.com (more specifically: http://www.scriptsearch.com/Perl/Scripts_and_Programs/Form_Processing/) or hot scripts to locate the form handler? If you have SSL - you can capture the CC data on your website & pass thru to the gateway. The gateway should provide you with some code examples on how to connect to their gateway. Most gateways offer an API (to capture & process CC data on your secure website) or a simple / basic form to capture & process the data on their secure website.

blaze60
07-31-2004, 07:32 PM
Hi

thanks for the response

My gateway does provide examples, but it really only gives a bare minimum of an example.

I really would like feedback on how people process the data from an order form, and store it, prior to shipping that data off to the payment gateway.

For example, usernames, emails, domains, etc. All this info would not be required by a payment gateway, but it would be required for you to process the order.

Mainly, I am looking for people who have already tackled this problem, and how they did it. Any script examples would be keen!

Thanks.

Corey Bryant
07-31-2004, 07:51 PM
What are you using now for your control panel? Usually the control panel handles most of this.

As far as source code, are you maintaining your data in mySQL, MSSQL, or MS Access? Are you grabbing the CC data on your secure server?

Let's presume you are grabbing the CC data on your server. The first form would grab the basic information, username, password for the control panel(?), e-mail, telephone & maybe the billings information. The second form would then process the first form, dump the appropriate information over to the the database & the ask for the CC information (type, number, amount, CVV number, exp). This would post to the gateway & then you would get a response back from them.

The URLs that I pointed out earlier have source code if are not using a control panel or you do not know how to dump information into a database.

blaze60
08-01-2004, 10:27 PM
No control panel, straight OS.

We wrote the control panel from scratch.

Data is maintained on a psql db. I will not be storing the CC information locally, it will be stored ont he merchant account's recurring billing db.

I gotcha on the form split, just curious how most people handle and generate the html (with what languagues, etc.) Specific examples would be keen.

I checked out the urls, thx for the links.

Corey Bryant
08-02-2004, 07:13 AM
Well we dump the information into a MSSQL database & then push the appropriate information over to the Linkpoint gateway. We have an SSL so everything is taken on our website. The form itself is written in .NET