SagePay Plugin Billingstate

  • Posts: 5
  • Thank you received: 0
11 years 6 months ago #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

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 6 months ago #75309

Hi,

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

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

Thanks to give us a feedback.

Last edit: 11 years 6 months ago by Xavier.

Please Log in or Create an account to join the conversation.

  • Posts: 5
  • Thank you received: 0
11 years 6 months ago #75374

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 or Create an account to join the conversation.

  • Posts: 81716
  • Thank you received: 13107
  • MODERATOR
11 years 6 months ago #75383

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

Please Log in or Create an account to join the conversation.

Time to create page: 0.060 seconds
Powered by Kunena Forum