Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 04-29-2018 03:04:16

sdn
Member
From: UK
Registered: 05-29-2007
Posts: 882

SagePay US State Requirement

SagePay MUST receive a valid State when country is set to United States. Any other entry takes you to an ugly, confusing and alarming error page with no return link or indications of what the problem is:

Error processing transaction
This transaction attempt has failed. We are unable to redirect you back to the web store from which you were purchasing. The details of the failure are given below.
Status: ERROR
Status Detail:     5080 : Form transaction registration failed.

Customer is left with no idea of what went wrong or how to return to our site. We see quite a few of these failures in SagePay report and nearly 100% never complete their purchase.

We already have custom code in the gateway form to handle 2 letter state abbreviated data sagepay needs but it still requires the customer to enter a valid US state in the dropdown form menu. Is there a way we can ensure that a valid State is entered when country is United States or some other method you can think of to resolve this issue?


Simon

Offline

 

#2 04-30-2018 07:48:14

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: SagePay US State Requirement

What exactly is the problem?  Are customers selecting non-US-states from the listing (like UK counties, CA provinces, etc)?  So you're seeing errors when the state sent is not one of the US 50 states?  Or is there a problem sending data over?


Nick Hendler

Offline

 

#3 04-30-2018 11:42:57

sdn
Member
From: UK
Registered: 05-29-2007
Posts: 882

Re: SagePay US State Requirement

It happens where customers are selecting United States for the country but not selecting a valid US state from the States dropdown menu. There are a lot of UK counties first followed by the US states (as we are based in the UK). Sagepay then receive "XX" instead of a valid state like FL.

Could the form validaton code (where is that?) be changed so it refuses to continue until a valid US state is entered (like happens already if a mandatory field is left empty). If it could also focus/home the dropdown on Alabama that would be sweet as there are now 459 states in the list (PayPal Express checkouts keep adding new entries).

Last edited by sdn (05-01-2018 02:51:43)


Simon

Offline

 

#4 05-01-2018 07:36:52

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: SagePay US State Requirement

(PayPal Express checkouts keep adding new entries)

How?  Custom code?  Why?

Could the form validaton code (where is that?) be changed so it refuses to continue until a valid US state is entered

Yes, will add to update 9.0.3.  There isn't much left to do to that update, it's been in dev since October, so expect it within a month.  It's being wrapped up now.


Nick Hendler

Offline

 

Board footer