Closed (works as designed)
Project:
Sage Pay Server Integration for Ubercart
Version:
6.x-1.4
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Jun 2011 at 13:23 UTC
Updated:
13 Mar 2013 at 09:07 UTC
Comments
Comment #1
aireworth commentedHave you checked the error logs? They usually tell you where to look in these cases. Under "administration->reports"
Colin
Comment #2
dwigglesworth commentedI have a similar situation to the issue above. When I look in the error logs I can see:
Sagepay Server sent a not OK response.Array ( [VPSProtocol] => 2.23 [Status] => INVALID [StatusDetail] => The data in the DeliveryCountry field you supplied is an Invalid format. Must be an ISO 3166-1 country code.)
None of my products are deliverable. Will look into this the DeliveryCountry field must be empty.
Comment #3
dwigglesworth commentedI can see that uc_sagepayserver_checkout_form_submit() checks if the delivery country is set and otherwise uses the billing country code.
Comment #4
dwigglesworth commentedSolved. $order->delivery_country is set as US (840) and I had removed the United States country format because my site will only work in UK - which meant:
$delivery_country_iso_code = $country_data[0]["country_iso_code_2"];Could not be set, causing the error. Which is to do with the configuration of Ubercart rather than this module itself.
Comment #5
leo pitt commentedClosing