Hello all
Forgive this being in the wrong section but is anyone else having an issue with the old trick of using UK1,UK2 & UK3 for different delivery areas (Country Codes) for I.O.W Ireland NI & Scottish Highlands?
I don't send to these areas much much but today I got a customer who said he can't pay my I.O.W delivery cost as he gets a 3141 INVALID invoice address from Sagepay. I've not changed a thing and this has worked perfectly since 2015. I have checked the OCCProtxscript file in the CommonOCC folder as below, never changed
I'm totally lost as to why this would happen unless over night the Country Codes have changed?
Thanks in advance for any ideas
sub GetProtxLocationCodes
{
my ($sAddress) = @_;
#
# Handle country code first
#
my $sCountryCode = $::g_LocationInfo{$sAddress . '_COUNTRY_CODE'};
if ($sCountryCode eq '')
{
$sCountryCode = $::g_pSetupBlob->{'MERCHANT_COUNTRY_CODE'};
}
#
# Handle state code according to country
#
my $sStateCode = '';
if (substr($sCountryCode ,0, 2) eq 'UK')
{
$sCountryCode = 'GB';
}
elsif ($sCountryCode eq 'US')
{
my $sRegionKey = $sAddress . '_REGION_CODE';
$sStateCode = $::g_LocationInfo{$sRegionKey};
$sStateCode = ($sStateCode ne $ActinicOrder::UNDEFINED_REGION) ?
ActinicLocations::GetISORegionCode($sStateCode) : "";
}
return ($sCountryCode, $sStateCode);
Forgive this being in the wrong section but is anyone else having an issue with the old trick of using UK1,UK2 & UK3 for different delivery areas (Country Codes) for I.O.W Ireland NI & Scottish Highlands?
I don't send to these areas much much but today I got a customer who said he can't pay my I.O.W delivery cost as he gets a 3141 INVALID invoice address from Sagepay. I've not changed a thing and this has worked perfectly since 2015. I have checked the OCCProtxscript file in the CommonOCC folder as below, never changed
I'm totally lost as to why this would happen unless over night the Country Codes have changed?
Thanks in advance for any ideas
sub GetProtxLocationCodes
{
my ($sAddress) = @_;
#
# Handle country code first
#
my $sCountryCode = $::g_LocationInfo{$sAddress . '_COUNTRY_CODE'};
if ($sCountryCode eq '')
{
$sCountryCode = $::g_pSetupBlob->{'MERCHANT_COUNTRY_CODE'};
}
#
# Handle state code according to country
#
my $sStateCode = '';
if (substr($sCountryCode ,0, 2) eq 'UK')
{
$sCountryCode = 'GB';
}
elsif ($sCountryCode eq 'US')
{
my $sRegionKey = $sAddress . '_REGION_CODE';
$sStateCode = $::g_LocationInfo{$sRegionKey};
$sStateCode = ($sStateCode ne $ActinicOrder::UNDEFINED_REGION) ?
ActinicLocations::GetISORegionCode($sStateCode) : "";
}
return ($sCountryCode, $sStateCode);
Comment