Hi All,
Can anyone answer my question. I am developing a payment system, which will involve credit card payments. I have decided to use LAMP, with SSL and to send the payment details using PGP. Now, before I send the information I would like to check the credit card number is in a valid format. I have found VISA, MASTERCARD and AE algorithms, they are all very helpful. But I haven't come across an example for SWITCH that works.
Somone posted the following example, but no luck:
([0-9]{6}[\s-]{1}[0-9]{12}|[0-9]{18})$
Does an algorithm exist? Can anyone please point me to the right direction? I do not want to download any software or have to pay for any commercial solutions if possible and I am flexible about using PHP or JavaScript.
Thanks...
Colin