I already have a process to update my ARB subscription and is working fine (I created an option where a customer can go and update their billing information). my question is, how can i validate a credit card (valid/invalid/expired etc) before i post to update?
Solved! Go to Solution.
01-25-2012 05:09 PM
If you're using ARB, you are getting all those values internally - you can do the expiration date check yourself. You can even perform validation on the check digit. And I think Authorize.net will reject based on expiration date at least, since there's an error for that (though I always do the check myself so I can customize the response...) Whether the credit card itself is a real one and has sufficient balance is another matter entirely, however - Authorize.net will only reject a card code that's missing, for instance, and can only verify the rest of the information at the next charge, since it's all a merchant-level process.
Short version - you can do surface validation on expiration date, card number format, and whether a card code has been entered. Everything else is unavailable until the next charge. If you want immediate validation you'll have to run through an AIM transaction first to find out what happens, which will incur a processing charge.
01-25-2012 07:27 PM
If you're using ARB, you are getting all those values internally - you can do the expiration date check yourself. You can even perform validation on the check digit. And I think Authorize.net will reject based on expiration date at least, since there's an error for that (though I always do the check myself so I can customize the response...) Whether the credit card itself is a real one and has sufficient balance is another matter entirely, however - Authorize.net will only reject a card code that's missing, for instance, and can only verify the rest of the information at the next charge, since it's all a merchant-level process.
Short version - you can do surface validation on expiration date, card number format, and whether a card code has been entered. Everything else is unavailable until the next charge. If you want immediate validation you'll have to run through an AIM transaction first to find out what happens, which will incur a processing charge.
01-25-2012 07:27 PM