A credit card validation function using the Luhn algorithm.
Inspiration for this came from: https://www.mint.com/blog/trends/credit-card-code-01202011/
Test credit card data from: https://www.paypalobjects.com/en_US/vhelp/paypalmanager_help/credit_card_numbers.htm.