- My team working in a shopping cart project
- We have integrated First data payment Gateway
- Now we want to verify the master card and visa
- I need to authenticate the master card SecureCode based on the link given below
- http://www.mastercard.com/us/personal/en/cardholderservices/securecode/how_it_works.html
- Please provide any api or necessary information for doing the same
views:
142answers:
3
+1
A:
Hum, imho you need a payment provider to use credit card payment anyway - they'll give you a kind of api to check the data against.
dhh
2010-05-15 11:38:32
+2
A:
To validate a credit card is legitimate:
- Verify it against the Luhn Algorithm. (Will only validate the card number is in a valid format)
- Verify the card number against known Issuer Identification Numbers
- Perform an Authorization Only (aka AUTH ONLY) for $0.00 (or $0.01 if your processor does not support zero auths). This is the only guaranteed way to verify a credit card exists.
John Conde
2010-05-15 16:36:12
A:
To at least validate the code is valid you can give this a try: http://www.notesbit.com/index.php/web-mysql/web-scripts/luhn-algorithm-in-c/
Chris T
2010-05-15 22:38:07