How are names validated on credit cards?
What sort of validation is performed on credit cards regarding the name of the customer?
The API forces names to be in two fields - the "first name" and the "last name". Many cards will just have initials on the credit card (e.g.,MR J B SMITH), or might be a company name, and our internal system (which we're interfacing CG to at the moment) uses a single 'full name' field.
Is validation performed of the name on the card? Does it matter how a name is split between first name and last name? If the customer enters "John Bradley Smith" as their name, we can split that up as "John Bradley" and "Smith" when we pass to the CG API easy enough, but if their CC has a name of "MR J B SMITH", would validation fail?
Thanks, Sam.
Discussions are closed to public comments.
If you need help with Cheddar please
start a new discussion.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Marc Guyer on 22 Mar, 2012 04:16 PM
Names are not validated. You can parse a single name field any way you want as long as you end up with a value for first and last.
Name validation is not a feature of credit card validation so it's actually impossible to do it even if we wanted to.
2 Posted by spenn on 22 Mar, 2012 04:25 PM
Okay, that makes it easy.
Thanks for your quick reply.
Sam.
Marc Guyer closed this discussion on 22 Mar, 2012 04:57 PM.