I am trying to write some code that will validate the information for processing a credit card payment in Virtuemart.
At the very least I want to validate or prevent the following:
- Entering an expiration date older than today.
- A security code containing more than three digits or characters.
Any ideas or pointers will be welcome.