Jump to content

Recommended Posts

Hi all, hoping someone can help. I have a very small shopping cart app that collects customer information (name, address, cc#, etc.) all on one page. My problem is that I want to capture the name and contact information in my own database and at the same time send the credit card information all to the payment processing company. So it kinda looks like this:

 

Form page collects- Name, Address, Phone, Email, Credit Card Number, Expiration Date

 

Action page 1 - insert into my database (Name, Address, Phone, Email)

Action page 2 - post method to credit card authority (Name, Address, Phone, Email, Credit Card Number, Expiration Date)

 

In the past I've always had contact info on a separate page, so I could save to the db before I "checkout", in this case it's all one form, with only one submit button. In theory, the processing company gives me a receipt page, so I suppose I could have them pass me back all the form field variables and do my insert after the transaction, but I'd rather do it in the order above.

 

Any help would be most appreciated :)

you could process the info you require and save to the db, then use php to echo out a form and place the CC info into that form, using the php to then echo out a javascript command to submit form to the CC company when page is loaded.

there might well be a way to post to a url via php directly but i don't know it if it does exist. lol

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.