Warning: Your browser is very out-of-date. You should upgrade to a better browser.

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.

Hello, I'm Keith, a website developer in Belfast, Northern Ireland working with PHP, Magento, Shopify and WordPress.

I've been building websites for over 10 years, from custom website development to bespoke web applications, Shopify and Magento ecommerce and Online Leaning Environments. I've worked on a range of projects and am always looking out for the next interesting project.

Related PHP Posts

PHP August 2021

Google Sheets to PHP Array

This PHP function accepts a public Google Sheets URL and converts it into a PHP array. You can use the array to either display the...
PHP March 2021

PHP cURL Requests with JSON or XML

The following post will explain how to use PHP/cURL to retrieve data in JSON or XML and process it for using in your PHP application...
PHP February 2021

Global Payments: Strong Customer Authentication (SCA) and 3D Secure 2

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...

More PHP Posts...