active_shipping icon indicating copy to clipboard operation
active_shipping copied to clipboard

Issue with fetching UPS rates for Bermuda

Open jamiemtdwyer opened this issue 8 years ago • 0 comments

This issue was forwarded from a partner:

The issue is this: When you try to get rates from UPS with Active Shipping using an origin address in Bermuda, it throws the following error:

Failure: This measurement system is not valid for the selected country

We believe that the root of the problem is line 128 or Active Shipping's UPS.rb file, which defines what it calls "IMPERIAL_COUNTRIES." That list does not contain the country code for Bermuda ("BM").

IMPERIAL_COUNTRIES = %w(US LR MM)

It seems the UPS API demands imperial units be used when the origin is Bermuda--at least adding "BM" to line 128 eliminates the error when fetching UPS rates with a Bermuda origin address.

@jonathankwok @kmcphillips

jamiemtdwyer avatar Feb 07 '17 18:02 jamiemtdwyer