Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UK vs address.country and address.countryCode #114

Open
joss45674 opened this issue Dec 22, 2022 · 0 comments
Open

UK vs address.country and address.countryCode #114

joss45674 opened this issue Dec 22, 2022 · 0 comments

Comments

@joss45674
Copy link

The value of United Kingdom of Great Britain and Northern Ireland from IsoCountries appears to be too long and causes the error:

Unexpected Gateway Response: 506 - address.country : size must be between 0 and 50

Demo:

$customer = new \GlobalPayments\Api\Entities\Customer();
$customer->key = \GlobalPayments\Api\Utils\GenerationUtils::getGuid();
$customer->address = new \GlobalPayments\Api\Entities\Address();
$customer->address->countryCode = '826'; // This is UK 

try {
    $result = $customer->create();
} catch (\Exception $exception) {
    echo $exception->getMessage();
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant