If you have american customers and when using Sage Pay, they receive the following error message: -
Status Detail: 3130 : The BillingState value is too long.
NOTE: Before doing this please make a backup of your site by clicking 'File | Snapshot | Export Site'
Go to your 'Site' folder (it will be called 'Site1' if there is no other site within the software which if you have accepted the default installation location you will find in 'Documents\SellerDeck xxxx\Sites\' where 'xxxx' is the version number.
Status Detail: 3130 : The BillingState value is too long.
NOTE: Before doing this please make a backup of your site by clicking 'File | Snapshot | Export Site'
Go to your 'Site' folder (it will be called 'Site1' if there is no other site within the software which if you have accepted the default installation location you will find in 'Documents\SellerDeck xxxx\Sites\' where 'xxxx' is the version number.
- Find the file 'ActinicOrder.pm'
- Open this in a plain text editor such as 'Notepad'.
- Press Ctrl + F and search for the following:
Code:if ("US" eq $sCountryCode)
- you will see the following block of code
Code:if ("US" eq $sCountryCode) { return ($sCountryCode . "." . $sCountryRegion); }
- delete the block of code
- After this is done press Ctrl + F and search again for the following:
Code:$sReturnRegion eq $ActinicOrder::UNDEFINED_REGION
Code:if (($sReturnRegion eq $ActinicOrder::UNDEFINED_REGION)) { if ($sDefaultRegion ne '') { # # No match yet so use default from user if there is one # $sReturnRegion = $sDefaultRegion; } }
- replace the above block of code with the following block of code
Code:if ($sReturnRegion eq $ActinicOrder::UNDEFINED_REGION) { # # PayPal uses the state codes for US addresses for all other countries # including Canada PayPal returns a State/Province/County name # if ("US" eq $sCountryCode) { # # If country is US and we didn't find a code for the state name then # treat the state name as a state code # if (StateRequiredForValidation('Delivery', $sCountryCode)) { $sReturnRegion = $sCountryCode . "." . $sCountryRegion; } } if (($sReturnRegion eq $ActinicOrder::UNDEFINED_REGION) && ($sDefaultRegion ne '')) { # # No match yet so use default from user if there is one # $sReturnRegion = $sDefaultRegion; } }
- Once this is done press 'File | Save' and close the document
- Upload the website ( 'Web | Refresh Website' ).