kylewest / DotNetShipping

UPS, FedEx, USPS shipping rate calculators for .NET
MIT License
80 stars 64 forks source link

Address in Spain does not return UPS rate #65

Closed amart7 closed 7 years ago

amart7 commented 7 years ago

Have problem specifically with Spain. Address 1 in Madrid, Spain, weight = 37 ounces: Address 2 in Barcelona, Spain weight = 144 ounces: InternationalAddress9 = new DotNetShipping.Address("C/General Pardinas, 72 2 A", "", "", "Madrid", "", "28006", "ES"); InternationalAddress10 = new DotNetShipping.Address("C/Badajoz 73-77", "", "", "Barcelona", "", "E-08005", "ES");

Ship-from: DomesticAddress = new DotNetShipping.Address("3701 Algonquin Road", "", "", "Rolling Meadows", "IL", "60008", "US");

UseNegotiatedRates = true;

Let me know.

kylewest commented 7 years ago

Are you entering the weight as 37 and 144? It should be a decimal in pounds: 2.31 and 9.

Also, I don't think E-08005 is a valid postal code.

amart7 commented 7 years ago

@kylewest I am entering weight as decimal((decimal)37/(decimal)16).. Where you able to get rate for Madrid?

amart7 commented 7 years ago

@kylewest
I was debugging and found that PostalCode is not sent for Internationaladdresses see line 201 in "UPSProvider.cs" file and see attached file. Why do we not allow PostalCode for International Address (ship-to)? debugmadrid