Skip to content
This repository was archived by the owner on Jun 13, 2018. It is now read-only.
This repository was archived by the owner on Jun 13, 2018. It is now read-only.

Issue with fetching UPS rates for Bermuda #480

@jamiemtdwyer

Description

@jamiemtdwyer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions