Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Sagepay Form Error for US customers


li_osc

Recommended Posts

I am using the Sagepay Form module and when US customers try to book they receive this error message when they click confirm order

 

Error: MALFORMED: 3147 : The BillingState field is required.

 

or

 

Error: MALFORMED: 3148 : The DeliveryState field is required.

 

Any help or advise would be great!

 

Thanks

Link to comment
Share on other sites

  • 2 weeks later...

I am using the Sagepay Form module and when US customers try to book they receive this error message when they click confirm order

 

Error: MALFORMED: 3147 : The BillingState field is required.

 

or

 

Error: MALFORMED: 3148 : The DeliveryState field is required.

 

Any help or advise would be great!

 

Thanks

 

As per the SagePay protocol 2.23 specification the BillingState and DeliveryState values must be the 2 letters state codes only not a value in the address. Check the Protocol 2.23 documentation for more details.

or just trap the request and response sent and received from sagepay to analyze what is being posted and recd.

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

  • 4 months later...

I am having the same error from SagePay but i dont know how to fix it. I read some guy say that "ive looked into it and its not a problem with the module it was to do with my US zones...". Can anyone tell me what my zones should look like?

At the moment mine look like this;

zone_id - 12

zone_country_id - 223

zone_code - CA

zone_name - California

 

Does anybody have any ideas?

 

Thanks

JPA

Link to comment
Share on other sites

I am having the same error from SagePay but i dont know how to fix it. I read some guy say that "ive looked into it and its not a problem with the module it was to do with my US zones...". Can anyone tell me what my zones should look like?

At the moment mine look like this;

zone_id - 12

zone_country_id - 223

zone_code - CA

zone_name - California

 

Does anybody have any ideas?

 

Thanks

JPA

 

It is a problem with the module and I think Sagepay only enforced this week as previous it worked even though the 2.23 protocol info has been around for a while. I spent a few hrs last night figuring this out and coded a quick fix for it. I have uploaded a fix to the sagepay form contribution page

 

Thanks

 

Nick

Link to comment
Share on other sites

Thanks for the response. I've just given it a go and now i am getting this error.

 

This transaction attempt has failed. Please use the Proceed button go back to the web store from which you were purchasing. The details of the failure are given below.

 

Status: INVALID

 

Status Detail: 4006 : The TxType requested is not supported on this account.

 

Any ideas?

Link to comment
Share on other sites

I seem to have got it working.

 

On line 292 you had

 

//$transaction_type = 'PAYMENT';

$transaction_type = 'DEFERRED';

 

So i just changed it back to the default one which was

 

$transaction_type = 'PAYMENT';

 

It now seems to be taking payments from US and UK (thats all i've tested and i need to get to sleep) with no error so now its time for it to be tested on live by customers.

 

Thanks alot for your help and i hope these post helps others in the same position.

 

DigitalTag

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...