Automattic / woocommerce-services

WooCommerce Services is a feature plugin that integrates hosted services into WooCommerce (3.0+), and currently includes automated tax rates and the ability to purchase and print USPS shipping labels.
GNU General Public License v2.0
107 stars 20 forks source link

Shipping labels No rates available error for certain addresses #2197

Open AashikP opened 3 years ago

AashikP commented 3 years ago

WooCommerce Services is having trouble pulling rates for shipping labels for certain countries. Eg: Ghana, Nigeria.

From Address: (use any example US address) Example to address: 28 Kodesoh St, Computer Village, Ikeja, Nigeria (100271)

Attempt to print a shipping label for the order and notice the first error:

https://d.pr/i/rAiHfN+ If the image does not load, please click this link: https://d.pr/i/rAiHfN

When you finally add placeholder values:

https://d.pr/i/yaybWn+


While we initially thought that it is likely because USPS does not ship to those locations, user in 3276184-zen confirmed that they were able to mail both the packages from the post office.

Also, taking a look at https://about.usps.com/newsroom/service-alerts/international/welcome.htm


Marking critical as depending on the address, the extension cannot be used at all for printing shipping labels.

c-shultz commented 3 years ago

@harriswong is going to follow up with EasyPost about this. They had told us that USPS cannot ship to those locations right now, but it sounds like that isn't the case based on that ticket.

harriswong commented 3 years ago

Reply from EasyPost:

...EasyPost has actually disabled USPS rates to Nigeria and Ghana due to the amount of fraud with these countries in the past.

@c-shultz We can display some notification after address check, saying that we don't support shipping to these countries for USPS, you will need to visit a postal office physically. At the same time, i also think that we can close this issue without making changes because we are showing no USPS rates at the moment. "No rates available" is the same as "no shipping available to these countries".

c-shultz commented 3 years ago

I agree with closing this. Let's discuss best next steps on P2. At a minimum, we should have a note in our docs.

harriswong commented 3 years ago

We discussed in team and we are going to re-open this.

While we can't fetch rates for these 2 countries, we would also like to prevent confusion to the users. Instead of just not displaying any rates. We agree to display a message when the destination is being shipped to these 2 countries. Something similar to this: image

c-shultz commented 3 years ago

I'm going to change this priority to high. This is expected behavior based on what we've learned from EasyPost.

harriswong commented 3 years ago

We chatted in our team meeting. When fixing this, we should consider:

efixler commented 3 years ago

I've dropped priority on this issue.

EasyPost will determine lanes for which fraud is likely. TBH, we should we doing the same; account takeover + stolen cards used to purchase international labels to specific countries is a known problem in the space.

The most important behavior here is that we don't provide labels to countries tagged as fraud-likely or forbidden by our upstream providers or carriers. This is already the case.

I'm willing to speculate that the number of legitimate requests for US->Nigeria/Ghana/etc rates is infinitesimal. As such, I don't see this as a high priority issue, at least when there are other issues in the backlog where there are known cases of providing incorrect rates.