|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
I was looking at the Credit Card Validation Tutorial. I tried the code and ran in to some problems. The mastercard mod 10 check passed with the card number 5555 5555 5555 1111 however when I checked Visa and AMEX cards with actual valid cards...they both failed. Thinking that it was something I missed while doing the tutorial... I used the source files from the tutorial. That code failed also. Could someone tell me what could be causing the code to fail?
Thanks |
|
#2
|
|||
|
|||
|
What version of PHP are you running on your server?
Also, how are you calling the validator?
__________________
____________________________________________ Developer Shed Weekly Writer | DevArticles Forum Moderator Build Your Own KlipFolio Klip With PHP FrankManno.com - Under Construction Design Interactive Group - Under Construction |
|
#3
|
|||
|
|||
|
Credit card validation
Locally I am using 4.2.3
Remotely 4.2.2 I have done it myself following the tutorial and have used the tutorial source files. both use cctest.php which has a form that uses action="cctest.php method="post" to submit the form information... there is an include for class.creditcard.php this file has the actual validation script... |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Credit Card Validation Tutorial |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|