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

#   SagePay Plugin Billingstate

##

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

Less More

- Posts: 5
- Thank you received: 0
-
-

13 years 11 months ago [\#75135](#75135) by [tgowans](/forum/user/11262-tgowans "View tgowans's Profile")  *[SagePay Plugin Billingstate](/forum/3-bug-report/75135-sagepay-plugin-billingstate#75135 "I am experiencing a SagePay error 3147 which occurs when US customers place orders. The Changelog states that this was fixed back in May this year, is anyone able to give some ideas on how to solve this? I have customers waiting to pay  Thanks TG")* was created by *[tgowans](/forum/user/11262-tgowans "View tgowans's Profile")*

I am experiencing a SagePay error 3147 which occurs when US customers place orders.
The Changelog states that this was fixed back in May this year, is anyone able to give some ideas on how to solve this? I have customers waiting to pay

Thanks
TG

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83NTEzNS1zYWdlcGF5LXBsdWdpbi1iaWxsaW5nc3RhdGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 11 months ago -  13 years 11 months ago [\#75309](#75309) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: SagePay Plugin Billingstate](/forum/3-bug-report/75135-sagepay-plugin-billingstate#75309 "I am experiencing a SagePay error 3147 which occurs when US customers place orders. The Changelog states that this was fixed back in May this year, is anyone able to give some ideas on how to solve this? I have customers waiting to pay  Thanks TG")*

Hi,

Can you try to edit the file "plugins/hikashoppayment/sagepay/sagepay.php" in the function "onAfterOrderConfirm()" replace the lines: Code:

if(@$order-&gt;cart-&gt;billing_address-&gt;address_country-&gt;zone_code_3=='US'){ $postData['BillingState'] = @$order-&gt;cart-&gt;billing_address-&gt;address_state-&gt;zone_code_3; } if(@$order-&gt;cart-&gt;shipping_address-&gt;address_country-&gt;zone_code_3=='US'){ $postData['DeliveryState'] = @$order-&gt;cart-&gt;shipping_address-&gt;address_state-&gt;zone_code_3; }

By: Code:

if(@$order-&gt;cart-&gt;billing_address-&gt;address_country-&gt;zone_code_3=='USA'){ $postData['BillingState'] = @$order-&gt;cart-&gt;billing_address-&gt;address_state-&gt;zone_code_2; } if(@$order-&gt;cart-&gt;shipping_address-&gt;address_country-&gt;zone_code_3=='USA'){ $postData['DeliveryState'] = @$order-&gt;cart-&gt;shipping_address-&gt;address_state-&gt;zone_code_2; }

Thanks to give us a feedback.

Last edit: 13 years 11 months ago by [Xavier](/forum/user/4105-xavier "View Xavier's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83NTEzNS1zYWdlcGF5LXBsdWdpbi1iaWxsaW5nc3RhdGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 5
- Thank you received: 0
-
-

13 years 11 months ago [\#75374](#75374) by [tgowans](/forum/user/11262-tgowans "View tgowans's Profile")  Replied by *[tgowans](/forum/user/11262-tgowans "View tgowans's Profile")* on topic *[Re: SagePay Plugin Billingstate](/forum/3-bug-report/75135-sagepay-plugin-billingstate#75374 "I am experiencing a SagePay error 3147 which occurs when US customers place orders. The Changelog states that this was fixed back in May this year, is anyone able to give some ideas on how to solve this? I have customers waiting to pay  Thanks TG")*

Hi Xavier,

This worked perfectly! Thanks!
Why have we experienced this issue when there was a "fix" back in May?

Best Regards,

TG

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83NTEzNS1zYWdlcGF5LXBsdWdpbi1iaWxsaW5nc3RhdGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86323
- Thank you received: 14283
-
-

13 years 11 months ago [\#75383](#75383) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: SagePay Plugin Billingstate](/forum/3-bug-report/75135-sagepay-plugin-billingstate#75383 "I am experiencing a SagePay error 3147 which occurs when US customers place orders. The Changelog states that this was fixed back in May this year, is anyone able to give some ideas on how to solve this? I have customers waiting to pay  Thanks TG")*

That's another modification to solve something else which was done last month which caused the issue.

That's already fixed on our end and we updated the downloadable package as well for other users.

The following user(s) said Thank You: [tgowans](/forum/user/11262-tgowans "View tgowans's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83NTEzNS1zYWdlcGF5LXBsdWdpbi1iaWxsaW5nc3RhdGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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.058 seconds

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