title: Credit Card processing with php form
body: <p>I am looking at integrating credit card processing into a form. Basically what happens is :</p>
  
  <ol>
  <li><p>The customer will enter the website which is secured with ssl</p></li>
  <li><p>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.</p></li>
  <li><p>Once the customer is happy with the price of their quote they press submit,this then posts the info to the payment page.</p></li>
  <li><p>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).</p></li>
  <li><p>The credit card processor then returns a true or false value.</p></li>
  <li><p>If false is returned echo "transaction failed" , else enter the customers details into the database and display a success message.</p></li>
  </ol>
  
  <p>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.</p>
  
  <p>I just want to clarify that the above process is correct before I suggest an alternate plan to their highly insecure one.</p>