SagePay State Issues

Posted By Tiggywiggler Sun 24 Jul 2016
Add to Favorites0
Author Message
Tiggywiggler
 Posted Sun 24 Jul 2016
Supreme Being

Supreme Being - (124,410 reputation)Supreme Being - (124,410 reputation)Supreme Being - (124,410 reputation)Supreme Being - (124,410 reputation)Supreme Being - (124,410 reputation)Supreme Being - (124,410 reputation)Supreme Being - (124,410 reputation)Supreme Being - (124,410 reputation)Supreme Being - (124,410 reputation)

Group: Forum Members
Last Active: Mon 6 Dec 2021
Posts: 235, Visits: 750
Is anyone else getting a problem with SagePay states?

If a user puts their state as "CA" there is no problem with SagePay, if the user puts "California" then SagePay throws an error. I have read a post from 2014 that says that SagePay only accepts two letter states but I am struggling to believe that such an old rule would only now be giving me problems.

Was this California to CA conversion handled in a DLL that I am missing? If not I will need to write myself a library, I would have thought that the SagePay DLL would handle this.

Some Info:
http://www.sagepay.co.uk/support/error-codes/3130-%C2%A0-billingstate-value-too-long


We are always willing to help out the community or pitch in to help you fix a problem. However, if you want a complete solution made such as a code module or new feature added you have two options. Either
1) Reach out to the Kartris internal development team at http://www.kartris.com/Contact.aspx.
2) Contact one of the Kartris approved partners at http://www.kartris.com/t-Worldwide-Developers.aspx.

Have fun and good luck coding.
Sun 24 Jul 2016 by Tiggywiggler
Tiggywiggler
 Posted Wed 27 Jul 2016
Supreme Being

Supreme Being - (124,410 reputation)Supreme Being - (124,410 reputation)Supreme Being - (124,410 reputation)Supreme Being - (124,410 reputation)Supreme Being - (124,410 reputation)Supreme Being - (124,410 reputation)Supreme Being - (124,410 reputation)Supreme Being - (124,410 reputation)Supreme Being - (124,410 reputation)

Group: Forum Members
Last Active: Mon 6 Dec 2021
Posts: 235, Visits: 750
I have now written a library and a method to convert from the full state name to the state code and I pass the XML through this when I detect an order with 'SagePay' as the target and 'USA' as the destination country.

We are always willing to help out the community or pitch in to help you fix a problem. However, if you want a complete solution made such as a code module or new feature added you have two options. Either
1) Reach out to the Kartris internal development team at http://www.kartris.com/Contact.aspx.
2) Contact one of the Kartris approved partners at http://www.kartris.com/t-Worldwide-Developers.aspx.

Have fun and good luck coding.

Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Back To Top