I am looking at integrating credit card processing into a form. Basically what happens is :
The customer will enter the website which is secured with ssl
They enter their info into a form, and select different drop down options, jquery then updates the price of their quote on the fly as they select different options.
Once the customer is happy with the price of their quote they press submit,this then posts the info to the payment page.
The customer enters their credit card number, this is then posted to the credit card processor presumably using the credit card processors script ?, along with the price to be debited from the account. (not sure on this part).
The credit card processor then returns a true or false value.
If false is returned echo "transaction failed" , else enter the customers details into the database and display a success message.
What I am wondering is if this is the correct procedure to follow ?, as the person I am doing this for was talking about saving the credit card details to the DB or sending them in an email in a csv which sent alarm bells ringing, so I told them neither are a safe option and the processing should be done by the card processing company.
I just want to clarify that the above process is correct before I suggest an alternate plan to their highly insecure one.