The roll out of 3D Secure 2 has been a long drawn-out process not helped by the COVID–19 pandemic. Part of the update has included additional fields some new and some previously optional fields now mandatory.
Telephone Number
Where previously a telephone number could be omitted from the a call to Global Payments the field is now required and must be in the correct format - including the country-level dialing code in the format:
44|123456789
This required a bit of mapping from the country code. This script will map a ISO 3166-1 alpha-2 country code to the relevant international dialing code.
Postal Code
Postal codes have always been recommended for UK addresses but the relatively new Eirecodes in the Republic of Ireland are a new addition and still not commonly used in Ireland.
As post code is not a required field for Irish addresses it will be up to ecommerce users to decide how this is implemented on their stores.
Temporary Work Around
As of Feburary 2020, a common work around is to use the store's Eircode if the customer is unable to use their own Eircode. However, this should only be done as a last resort as it will impact the ability of Banks and Global Payments to carry-out 3DS checks properly. It is also important to make sure this is only used for the billing and not shipping address!
Country
The country field has always been a ISO 3166-1 numeric three-digit country code but oftentimes legacy software will either hard code this value or have a limited list of mappings against country name/code.
This script will map a two letter ISO 3166-1 alpha-2 country code to the required three digit code.
Ready to elevate your website?
Whether you're launching a new site, strengthening security, or adding a new feature, I can help transform your vision into a high-performing online presence.
More Website Development posts
—
Structured data for SEO
Adding structured data to a website is one of those steps that often gets overlooked, yet it can make a real difference to how a site performs in search engines.…
—
Ensuring a smooth deployment of a PHP website application
Deploying a PHP website application requires meticulous planning, a solid understanding of the environment, and a thorough execution process. To ensure a smooth deployment, it is essential to follow best…
Continue reading "Ensuring a smooth deployment of a PHP website application"
—
Knack API Integration
Knack is a powerful low-code platform that allows you to build online databases and custom web applications. When integrating Knack with your own systems or custom front ends, you can…
—
Popular PHP frameworks
Here’s detailed look at some of the most popular PHP frameworks, each of which can help speed up development, improve code organisation, and enhance application performance. Laravel Laravel is one…