Visa Developer Community

Helper

Credit card name validation

I am trying to validate the name field when payments are being made by credit card.  Anyone know what the REGEX string should be for this?

Or, what are the acceptable characters:

I think apostrophe, hypen.  Not sure about period.  Anything else I should expect to see on card names?

 

 

TIA,

MikeyB

 

 

3 REPLIES 3
Visa Dev Moderator

Re: Credit card name validation

Hi @MikeyB,

 

VCO allows the following format. For more details, refer to Visa Checkout Integration Guide here - https://developer.visa.com/images2/products/visa_checkout/VisaCheckoutMerchantDocs.zip

 

VCO firstname lastname description.png

 

 

Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

Thanks,
Diana

Helper

Re: Credit card name validation

Thanks Diana,

 

My problems are solved. For anyone reading this, be careful, there are 5 types of apostrophe to consider in validation !!

 

Highlighted
Helper

Re: Credit card name validation

 .