Credit Card Last 4 Digits
Posted: Thu Nov 09, 2006 8:14 pm
I'm building a site where I will be passing credit card information to a clearing house, but I want to retain the last four digits of the credit card number in the database and associate it with the order.
Does any more experienced in php than myself know of the best way to do this? Should I just use string functions to replace the digits?
Has anyone already created a function to validate the cc number and then replace all the digits except the last four with asterisks?
Thanks.
Does any more experienced in php than myself know of the best way to do this? Should I just use string functions to replace the digits?
Has anyone already created a function to validate the cc number and then replace all the digits except the last four with asterisks?
Thanks.