scurrell Posted August 3, 2011 Share Posted August 3, 2011 WHMCS is using the full name for the US state drop-down, but SagePay is failing with the error "The BillingState value is too long." Presumably we need to substitute the full State list for the 2-letter abbreviated states, as required by SagePay? Can anyone quickly point me to where I need to edit this? 0 Quote Link to comment Share on other sites More sharing options...
penguin Posted August 3, 2011 Share Posted August 3, 2011 We've noticed this quite a few times recently too where with new customers or existing ones who have updated their card details/addresses. The only solution seems to be to edit their address and change the state field to contain the state code instead of the full name. This definately needs fixing though. 0 Quote Link to comment Share on other sites More sharing options...
D9Hosting Posted August 4, 2011 Share Posted August 4, 2011 We've also had this issue, to fix it we've manually edited the following file: /includes/jscript/statesdropdown.js And replaced the state names with their 2 letter abbreviation. 0 Quote Link to comment Share on other sites More sharing options...
scurrell Posted August 4, 2011 Author Share Posted August 4, 2011 We've also had this issue, to fix it we've manually edited the following file: /includes/jscript/statesdropdown.js And replaced the state names with their 2 letter abbreviation. Thanks for that. Now done. 0 Quote Link to comment Share on other sites More sharing options...
penguin Posted August 4, 2011 Share Posted August 4, 2011 We're going to look and see if we can tweak it so that the full state names are displayed to customers and then the state codes are then substituted so Sagepay is happy. That would make it a bit more user friendly for the customers. 0 Quote Link to comment Share on other sites More sharing options...
scurrell Posted August 4, 2011 Author Share Posted August 4, 2011 We're going to look and see if we can tweak it so that the full state names are displayed to customers and then the state codes are then substituted so Sagepay is happy. That would make it a bit more user friendly for the customers. Nice. Be nicer if WHMCS built it in though..... 0 Quote Link to comment Share on other sites More sharing options...
penguin Posted August 4, 2011 Share Posted August 4, 2011 I agree - I've just opened a ticket about this 0 Quote Link to comment Share on other sites More sharing options...
penguin-chrissie Posted August 18, 2011 Share Posted August 18, 2011 I don't know if anyone else has discovered this too as I only came across it today when trying to help a US customer pay. When the customer clicks 'Pay Now' on the invoice, it takes them through to the credit card page but is not feeding through the state details so they have to select this from County/Region which puts in the full state name and not the Code. BUT if you get the customer to change the Country to United States Outying Islands, this pulls in the right details and puts the State code in instead. I have fed this back to WHMCS but thought it worth mentioning in here incase it is of use to anyone else. Hopefully there will be a fix soon 0 Quote Link to comment Share on other sites More sharing options...
penguin Posted August 19, 2011 Share Posted August 19, 2011 Matt has produced a fix for this now - many thanks 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.