[Skip to main content](#vessel-content)

#   upgrade Hikashop - electronic goods products creates error code 3140 in sagepay

##

- **[mikeflan](/forum/user/41517-mikeflan "View mikeflan's Profile")**
- [![mikeflan's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/41517-mikeflan "View mikeflan's Profile") Topic Author
- [ Offline](/forum/user/41517-mikeflan)

Less More

- Posts: 27
- Thank you received: 1
-
-

8 years 3 weeks ago [\#299475](#299475) by [mikeflan](/forum/user/41517-mikeflan "View mikeflan's Profile")  *[upgrade Hikashop - electronic goods products creates error code 3140 in sagepay](/forum/29-payment-methods/896029-upgrade-hikashop-electronic-goods-products-creates-error-code-3140-in-sagepay#299475 "-- url of the page with the problem -- :   shop.ultamation.com/  -- HikaShop version -- : 4.0.0 -- Joomla version -- : 3.8.13 -- PHP version -- : 7.0.32 -- Error-message(debug-mod must be tuned on) -- : sagepay payment error - 3140 : The DeliveryCountry value is invalid.  After updating to Hikashop 4.0 when purchasing through SagePay, the transaction comes up invalid the with status 3140 : The deliveryCountry value is invalid. This is for electronic goods and services which should not require a delivery address.  The request source looks like it has the correct billing information but also includes delivery tag with no information.  Currently we sell both electronic goods (that do not require delivery) and physical goods, so the checkout is set to &quot;show both&quot; but it only shows billing address if the product being purchased is electronic.  Do I need to change some configuration for this now to work or is there a bug since the 4.0 update which forces the blank delivery address to be sent along with the billing address to SagePay.  If you require Invalid request source, then I will need to send that through a private message as it contains private details.  Thanks Mike")* was created by *[mikeflan](/forum/user/41517-mikeflan "View mikeflan's Profile")*

-- url of the page with the problem -- : [ shop.ultamation.com/](https://shop.ultamation.com/)
-- HikaShop version -- : 4.0.0
-- Joomla version -- : 3.8.13
-- PHP version -- : 7.0.32
-- Error-message(debug-mod must be tuned on) -- : sagepay payment error - 3140 : The DeliveryCountry value is invalid.

After updating to Hikashop 4.0 when purchasing through SagePay, the transaction comes up invalid the with status 3140 : The deliveryCountry value is invalid. This is for electronic goods and services which should not require a delivery address.

The request source looks like it has the correct billing information but also includes delivery tag with no information.

Currently we sell both electronic goods (that do not require delivery) and physical goods, so the checkout is set to "show both" but it only shows billing address if the product being purchased is electronic.

Do I need to change some configuration for this now to work or is there a bug since the 4.0 update which forces the blank delivery address to be sent along with the billing address to SagePay.

If you require Invalid request source, then I will need to send that through a private message as it contains private details.

Thanks
Mike

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84OTYwMjktdXBncmFkZS1oaWthc2hvcC1lbGVjdHJvbmljLWdvb2RzLXByb2R1Y3RzLWNyZWF0ZXMtZXJyb3ItY29kZS0zMTQwLWluLXNhZ2VwYXk/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mikeflan](/forum/user/41517-mikeflan "View mikeflan's Profile")**
- [![mikeflan's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/41517-mikeflan "View mikeflan's Profile") Topic Author
- [ Offline](/forum/user/41517-mikeflan)

Less More

- Posts: 27
- Thank you received: 1
-
-

8 years 3 weeks ago [\#299487](#299487) by [mikeflan](/forum/user/41517-mikeflan "View mikeflan's Profile")  Replied by *[mikeflan](/forum/user/41517-mikeflan "View mikeflan's Profile")* on topic *[upgrade Hikashop - electronic goods products creates error code 3140 in sagepay](/forum/29-payment-methods/896029-upgrade-hikashop-electronic-goods-products-creates-error-code-3140-in-sagepay#299487 "-- url of the page with the problem -- :   shop.ultamation.com/  -- HikaShop version -- : 4.0.0 -- Joomla version -- : 3.8.13 -- PHP version -- : 7.0.32 -- Error-message(debug-mod must be tuned on) -- : sagepay payment error - 3140 : The DeliveryCountry value is invalid.  After updating to Hikashop 4.0 when purchasing through SagePay, the transaction comes up invalid the with status 3140 : The deliveryCountry value is invalid. This is for electronic goods and services which should not require a delivery address.  The request source looks like it has the correct billing information but also includes delivery tag with no information.  Currently we sell both electronic goods (that do not require delivery) and physical goods, so the checkout is set to &quot;show both&quot; but it only shows billing address if the product being purchased is electronic.  Do I need to change some configuration for this now to work or is there a bug since the 4.0 update which forces the blank delivery address to be sent along with the billing address to SagePay.  If you require Invalid request source, then I will need to send that through a private message as it contains private details.  Thanks Mike")*

For more information.

When a user creates a new account, if they do not click on the "Same address for shipping" tick box then this problem occurs. If they do click on this tick box then, the order is transferred to SagePay with no errors.

If I go into the users profile and try to manually add a delivery address, this does not fix the problem and the delivery information is not passed onto SagePay.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84OTYwMjktdXBncmFkZS1oaWthc2hvcC1lbGVjdHJvbmljLWdvb2RzLXByb2R1Y3RzLWNyZWF0ZXMtZXJyb3ItY29kZS0zMTQwLWluLXNhZ2VwYXk/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

8 years 3 weeks ago [\#299489](#299489) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[upgrade Hikashop - electronic goods products creates error code 3140 in sagepay](/forum/29-payment-methods/896029-upgrade-hikashop-electronic-goods-products-creates-error-code-3140-in-sagepay#299489 "-- url of the page with the problem -- :   shop.ultamation.com/  -- HikaShop version -- : 4.0.0 -- Joomla version -- : 3.8.13 -- PHP version -- : 7.0.32 -- Error-message(debug-mod must be tuned on) -- : sagepay payment error - 3140 : The DeliveryCountry value is invalid.  After updating to Hikashop 4.0 when purchasing through SagePay, the transaction comes up invalid the with status 3140 : The deliveryCountry value is invalid. This is for electronic goods and services which should not require a delivery address.  The request source looks like it has the correct billing information but also includes delivery tag with no information.  Currently we sell both electronic goods (that do not require delivery) and physical goods, so the checkout is set to &quot;show both&quot; but it only shows billing address if the product being purchased is electronic.  Do I need to change some configuration for this now to work or is there a bug since the 4.0 update which forces the blank delivery address to be sent along with the billing address to SagePay.  If you require Invalid request source, then I will need to send that through a private message as it contains private details.  Thanks Mike")*

Hello,

It might be possible that due to the modification in HikaShop 4 regarding the billing/shipping addresses ; there is no shipping address give to the plugin. While the billing address could be set-up as shipping address in the object, that might be the case in your configuration.
I'm working on a modification for the sagepay plugin to check the shipping object and use the billing one.
Since the shipping details are mandatory in SagePay, even if there is no shipping details, we have to put the billing details instead.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84OTYwMjktdXBncmFkZS1oaWthc2hvcC1lbGVjdHJvbmljLWdvb2RzLXByb2R1Y3RzLWNyZWF0ZXMtZXJyb3ItY29kZS0zMTQwLWluLXNhZ2VwYXk/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mikeflan](/forum/user/41517-mikeflan "View mikeflan's Profile")**
- [![mikeflan's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/41517-mikeflan "View mikeflan's Profile") Topic Author
- [ Offline](/forum/user/41517-mikeflan)

Less More

- Posts: 27
- Thank you received: 1
-
-

8 years 3 weeks ago [\#299501](#299501) by [mikeflan](/forum/user/41517-mikeflan "View mikeflan's Profile")  Replied by *[mikeflan](/forum/user/41517-mikeflan "View mikeflan's Profile")* on topic *[upgrade Hikashop - electronic goods products creates error code 3140 in sagepay](/forum/29-payment-methods/896029-upgrade-hikashop-electronic-goods-products-creates-error-code-3140-in-sagepay#299501 "-- url of the page with the problem -- :   shop.ultamation.com/  -- HikaShop version -- : 4.0.0 -- Joomla version -- : 3.8.13 -- PHP version -- : 7.0.32 -- Error-message(debug-mod must be tuned on) -- : sagepay payment error - 3140 : The DeliveryCountry value is invalid.  After updating to Hikashop 4.0 when purchasing through SagePay, the transaction comes up invalid the with status 3140 : The deliveryCountry value is invalid. This is for electronic goods and services which should not require a delivery address.  The request source looks like it has the correct billing information but also includes delivery tag with no information.  Currently we sell both electronic goods (that do not require delivery) and physical goods, so the checkout is set to &quot;show both&quot; but it only shows billing address if the product being purchased is electronic.  Do I need to change some configuration for this now to work or is there a bug since the 4.0 update which forces the blank delivery address to be sent along with the billing address to SagePay.  If you require Invalid request source, then I will need to send that through a private message as it contains private details.  Thanks Mike")*

Fantastic, that sounds exactly what I am viewing from the tests I have done today. Let me know when you have a solution.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84OTYwMjktdXBncmFkZS1oaWthc2hvcC1lbGVjdHJvbmljLWdvb2RzLXByb2R1Y3RzLWNyZWF0ZXMtZXJyb3ItY29kZS0zMTQwLWluLXNhZ2VwYXk/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

8 years 3 weeks ago [\#299503](#299503) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[upgrade Hikashop - electronic goods products creates error code 3140 in sagepay](/forum/29-payment-methods/896029-upgrade-hikashop-electronic-goods-products-creates-error-code-3140-in-sagepay#299503 "-- url of the page with the problem -- :   shop.ultamation.com/  -- HikaShop version -- : 4.0.0 -- Joomla version -- : 3.8.13 -- PHP version -- : 7.0.32 -- Error-message(debug-mod must be tuned on) -- : sagepay payment error - 3140 : The DeliveryCountry value is invalid.  After updating to Hikashop 4.0 when purchasing through SagePay, the transaction comes up invalid the with status 3140 : The deliveryCountry value is invalid. This is for electronic goods and services which should not require a delivery address.  The request source looks like it has the correct billing information but also includes delivery tag with no information.  Currently we sell both electronic goods (that do not require delivery) and physical goods, so the checkout is set to &quot;show both&quot; but it only shows billing address if the product being purchased is electronic.  Do I need to change some configuration for this now to work or is there a bug since the 4.0 update which forces the blank delivery address to be sent along with the billing address to SagePay.  If you require Invalid request source, then I will need to send that through a private message as it contains private details.  Thanks Mike")*

Hello,

Please re-download the plugin via your order summary to have the latest version and the patch on the shipping/billing address.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84OTYwMjktdXBncmFkZS1oaWthc2hvcC1lbGVjdHJvbmljLWdvb2RzLXByb2R1Y3RzLWNyZWF0ZXMtZXJyb3ItY29kZS0zMTQwLWluLXNhZ2VwYXk/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mikeflan](/forum/user/41517-mikeflan "View mikeflan's Profile")**
- [![mikeflan's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/41517-mikeflan "View mikeflan's Profile") Topic Author
- [ Offline](/forum/user/41517-mikeflan)

Less More

- Posts: 27
- Thank you received: 1
-
-

8 years 2 weeks ago [\#299531](#299531) by [mikeflan](/forum/user/41517-mikeflan "View mikeflan's Profile")  Replied by *[mikeflan](/forum/user/41517-mikeflan "View mikeflan's Profile")* on topic *[upgrade Hikashop - electronic goods products creates error code 3140 in sagepay](/forum/29-payment-methods/896029-upgrade-hikashop-electronic-goods-products-creates-error-code-3140-in-sagepay#299531 "-- url of the page with the problem -- :   shop.ultamation.com/  -- HikaShop version -- : 4.0.0 -- Joomla version -- : 3.8.13 -- PHP version -- : 7.0.32 -- Error-message(debug-mod must be tuned on) -- : sagepay payment error - 3140 : The DeliveryCountry value is invalid.  After updating to Hikashop 4.0 when purchasing through SagePay, the transaction comes up invalid the with status 3140 : The deliveryCountry value is invalid. This is for electronic goods and services which should not require a delivery address.  The request source looks like it has the correct billing information but also includes delivery tag with no information.  Currently we sell both electronic goods (that do not require delivery) and physical goods, so the checkout is set to &quot;show both&quot; but it only shows billing address if the product being purchased is electronic.  Do I need to change some configuration for this now to work or is there a bug since the 4.0 update which forces the blank delivery address to be sent along with the billing address to SagePay.  If you require Invalid request source, then I will need to send that through a private message as it contains private details.  Thanks Mike")*

I have re downloaded the SagePay plugin using our order code from your website, however this does not seem to have solved the problem. We are still receiving the 3140 error on SagePay and the request source is still missing the delivery details: "deliveryaddress2= deliverycity= deliverycountry= deliverystate= deliveryphone="

In your post you said "and the patch on the shipping/billing address." do you mean the patch inside of the SagePay plugin or do you mean a different patch that also needs to be downloaded and installed.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84OTYwMjktdXBncmFkZS1oaWthc2hvcC1lbGVjdHJvbmljLWdvb2RzLXByb2R1Y3RzLWNyZWF0ZXMtZXJyb3ItY29kZS0zMTQwLWluLXNhZ2VwYXk/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

8 years 2 weeks ago [\#299555](#299555) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[upgrade Hikashop - electronic goods products creates error code 3140 in sagepay](/forum/29-payment-methods/896029-upgrade-hikashop-electronic-goods-products-creates-error-code-3140-in-sagepay#299555 "-- url of the page with the problem -- :   shop.ultamation.com/  -- HikaShop version -- : 4.0.0 -- Joomla version -- : 3.8.13 -- PHP version -- : 7.0.32 -- Error-message(debug-mod must be tuned on) -- : sagepay payment error - 3140 : The DeliveryCountry value is invalid.  After updating to Hikashop 4.0 when purchasing through SagePay, the transaction comes up invalid the with status 3140 : The deliveryCountry value is invalid. This is for electronic goods and services which should not require a delivery address.  The request source looks like it has the correct billing information but also includes delivery tag with no information.  Currently we sell both electronic goods (that do not require delivery) and physical goods, so the checkout is set to &quot;show both&quot; but it only shows billing address if the product being purchased is electronic.  Do I need to change some configuration for this now to work or is there a bug since the 4.0 update which forces the blank delivery address to be sent along with the billing address to SagePay.  If you require Invalid request source, then I will need to send that through a private message as it contains private details.  Thanks Mike")*

Hello,

Would it be possible to have some access to your website in order to analyse the content of the problematic order ?
We would need an access to the backend, to the database (phpmyadmin) and to the FTP.
To perform the investigation, we would need the order ID (or order number) ; so we can check the content of that order in the database and understand why the loading of the billing is not made (and the FTP to apply a patch).

You can use the "contact us" form to send us such private information.
Please include the URL of that forum thread so the support team will know what to do with details.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84OTYwMjktdXBncmFkZS1oaWthc2hvcC1lbGVjdHJvbmljLWdvb2RzLXByb2R1Y3RzLWNyZWF0ZXMtZXJyb3ItY29kZS0zMTQwLWluLXNhZ2VwYXk/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mikeflan](/forum/user/41517-mikeflan "View mikeflan's Profile")**
- [![mikeflan's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/41517-mikeflan "View mikeflan's Profile") Topic Author
- [ Offline](/forum/user/41517-mikeflan)

Less More

- Posts: 27
- Thank you received: 1
-
-

8 years 2 weeks ago [\#299609](#299609) by [mikeflan](/forum/user/41517-mikeflan "View mikeflan's Profile")  Replied by *[mikeflan](/forum/user/41517-mikeflan "View mikeflan's Profile")* on topic *[upgrade Hikashop - electronic goods products creates error code 3140 in sagepay](/forum/29-payment-methods/896029-upgrade-hikashop-electronic-goods-products-creates-error-code-3140-in-sagepay#299609 "-- url of the page with the problem -- :   shop.ultamation.com/  -- HikaShop version -- : 4.0.0 -- Joomla version -- : 3.8.13 -- PHP version -- : 7.0.32 -- Error-message(debug-mod must be tuned on) -- : sagepay payment error - 3140 : The DeliveryCountry value is invalid.  After updating to Hikashop 4.0 when purchasing through SagePay, the transaction comes up invalid the with status 3140 : The deliveryCountry value is invalid. This is for electronic goods and services which should not require a delivery address.  The request source looks like it has the correct billing information but also includes delivery tag with no information.  Currently we sell both electronic goods (that do not require delivery) and physical goods, so the checkout is set to &quot;show both&quot; but it only shows billing address if the product being purchased is electronic.  Do I need to change some configuration for this now to work or is there a bug since the 4.0 update which forces the blank delivery address to be sent along with the billing address to SagePay.  If you require Invalid request source, then I will need to send that through a private message as it contains private details.  Thanks Mike")*

I have sent all the details to you in a personal message.
Thanks
for the help

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84OTYwMjktdXBncmFkZS1oaWthc2hvcC1lbGVjdHJvbmljLWdvb2RzLXByb2R1Y3RzLWNyZWF0ZXMtZXJyb3ItY29kZS0zMTQwLWluLXNhZ2VwYXk/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

8 years 2 weeks ago [\#299612](#299612) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[upgrade Hikashop - electronic goods products creates error code 3140 in sagepay](/forum/29-payment-methods/896029-upgrade-hikashop-electronic-goods-products-creates-error-code-3140-in-sagepay#299612 "-- url of the page with the problem -- :   shop.ultamation.com/  -- HikaShop version -- : 4.0.0 -- Joomla version -- : 3.8.13 -- PHP version -- : 7.0.32 -- Error-message(debug-mod must be tuned on) -- : sagepay payment error - 3140 : The DeliveryCountry value is invalid.  After updating to Hikashop 4.0 when purchasing through SagePay, the transaction comes up invalid the with status 3140 : The deliveryCountry value is invalid. This is for electronic goods and services which should not require a delivery address.  The request source looks like it has the correct billing information but also includes delivery tag with no information.  Currently we sell both electronic goods (that do not require delivery) and physical goods, so the checkout is set to &quot;show both&quot; but it only shows billing address if the product being purchased is electronic.  Do I need to change some configuration for this now to work or is there a bug since the 4.0 update which forces the blank delivery address to be sent along with the billing address to SagePay.  If you require Invalid request source, then I will need to send that through a private message as it contains private details.  Thanks Mike")*

Hello,

> You can **use the "contact us" form** to send us such private information.
> Please include the URL of that forum thread so the support team will know what to do with details.

You can also find in my forum signature :

> By the way, do not send me private message, use the "contact us" form instead.

Thanks ![:)](/media/kunena/emoticons/3.png ":)")

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84OTYwMjktdXBncmFkZS1oaWthc2hvcC1lbGVjdHJvbmljLWdvb2RzLXByb2R1Y3RzLWNyZWF0ZXMtZXJyb3ItY29kZS0zMTQwLWluLXNhZ2VwYXk/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

8 years 2 weeks ago [\#299686](#299686) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[upgrade Hikashop - electronic goods products creates error code 3140 in sagepay](/forum/29-payment-methods/896029-upgrade-hikashop-electronic-goods-products-creates-error-code-3140-in-sagepay#299686 "-- url of the page with the problem -- :   shop.ultamation.com/  -- HikaShop version -- : 4.0.0 -- Joomla version -- : 3.8.13 -- PHP version -- : 7.0.32 -- Error-message(debug-mod must be tuned on) -- : sagepay payment error - 3140 : The DeliveryCountry value is invalid.  After updating to Hikashop 4.0 when purchasing through SagePay, the transaction comes up invalid the with status 3140 : The deliveryCountry value is invalid. This is for electronic goods and services which should not require a delivery address.  The request source looks like it has the correct billing information but also includes delivery tag with no information.  Currently we sell both electronic goods (that do not require delivery) and physical goods, so the checkout is set to &quot;show both&quot; but it only shows billing address if the product being purchased is electronic.  Do I need to change some configuration for this now to work or is there a bug since the 4.0 update which forces the blank delivery address to be sent along with the billing address to SagePay.  If you require Invalid request source, then I will need to send that through a private message as it contains private details.  Thanks Mike")*

Hello,

I applied another patch and made a test ; the transaction seems to work fine since I was redirected to the SagePay platform.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84OTYwMjktdXBncmFkZS1oaWthc2hvcC1lbGVjdHJvbmljLWdvb2RzLXByb2R1Y3RzLWNyZWF0ZXMtZXJyb3ItY29kZS0zMTQwLWluLXNhZ2VwYXk/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mikeflan](/forum/user/41517-mikeflan "View mikeflan's Profile")**
- [![mikeflan's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/41517-mikeflan "View mikeflan's Profile") Topic Author
- [ Offline](/forum/user/41517-mikeflan)

Less More

- Posts: 27
- Thank you received: 1
-
-

8 years 2 weeks ago [\#299771](#299771) by [mikeflan](/forum/user/41517-mikeflan "View mikeflan's Profile")  Replied by *[mikeflan](/forum/user/41517-mikeflan "View mikeflan's Profile")* on topic *[upgrade Hikashop - electronic goods products creates error code 3140 in sagepay](/forum/29-payment-methods/896029-upgrade-hikashop-electronic-goods-products-creates-error-code-3140-in-sagepay#299771 "-- url of the page with the problem -- :   shop.ultamation.com/  -- HikaShop version -- : 4.0.0 -- Joomla version -- : 3.8.13 -- PHP version -- : 7.0.32 -- Error-message(debug-mod must be tuned on) -- : sagepay payment error - 3140 : The DeliveryCountry value is invalid.  After updating to Hikashop 4.0 when purchasing through SagePay, the transaction comes up invalid the with status 3140 : The deliveryCountry value is invalid. This is for electronic goods and services which should not require a delivery address.  The request source looks like it has the correct billing information but also includes delivery tag with no information.  Currently we sell both electronic goods (that do not require delivery) and physical goods, so the checkout is set to &quot;show both&quot; but it only shows billing address if the product being purchased is electronic.  Do I need to change some configuration for this now to work or is there a bug since the 4.0 update which forces the blank delivery address to be sent along with the billing address to SagePay.  If you require Invalid request source, then I will need to send that through a private message as it contains private details.  Thanks Mike")*

I can confirm that the problems we were having before seem to be sorted. Thanks for help.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84OTYwMjktdXBncmFkZS1oaWthc2hvcC1lbGVjdHJvbmljLWdvb2RzLXByb2R1Y3RzLWNyZWF0ZXMtZXJyb3ItY29kZS0zMTQwLWluLXNhZ2VwYXk/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.068 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
