How are names validated on credit cards?

spenn's Avatar

spenn

22 Mar, 2012 04:11 PM

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.

  1. Support Staff 1 Posted by Marc Guyer on 22 Mar, 2012 04:16 PM

    Marc Guyer's Avatar

    What sort of validation is performed on credit cards regarding the name of the customer?

    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. 2 Posted by spenn on 22 Mar, 2012 04:25 PM

    spenn's Avatar

    Okay, that makes it easy.

    Thanks for your quick reply.

    Sam.

  3. Marc Guyer closed this discussion on 22 Mar, 2012 04:57 PM.

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

Recent Discussions

28 Mar, 2024 10:45 PM
24 Jan, 2024 08:33 AM
11 Jan, 2024 07:13 AM
30 Nov, 2023 02:07 AM
22 Nov, 2023 08:41 AM