Re: QUESTION: how to validate credit card number before sent to Versign?

From: Date: Wed, 19 Dec 2001 17:53:38 +0000
Subject: Re: QUESTION: how to validate credit card number before sent to Versign?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-78231@lists.php.net to get a copy of this message
I presume you are sending the details to verisign by posting the info from the <form> directly to versign. If this is the case the post to a local php script, do the validation and then use the http_post class from http://phpclasses.upperdesign.com/ to send it to verisign Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key ----- Original Message ----- From: <sgibbs@vt.globalhealth.org> To: <php-general@lists.php.net> Sent: Wednesday, December 19, 2001 5:16 PM Subject: [PHP] QUESTION: how to validate credit card number before sent to Versign? > We collect credit card info. on our site and send it to Verisign for > processing. We collect the credit card info. on the last page of our > registration form. We have about 50% of the credit card numbers declined > because people use dashes in their cc number (even though our directions ask > them not to). > > Is there anyway to incorporate the following function so that the dashes > would be stripped out before going directly to Verisign for processing? or > do I need to create a middle page that would validate the credit card info. > before going to Verisign? If the latter is true, then is there a way I can > run this validation "invisibly" - maybe using header(Location:....)? > > > <? function clean_no($cc_no){// Remove non-numeric characters from $cc_no return ereg_replace ('[^0-9]+', '', $cc_no); }?> > > > Thanks for your help, Shawna > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#78231) next »