If you happen to be using a "Connection Address" (specified on admin/commerce/config/shipping/methods/usps/edit) of the USPS testing APIs:
http://testing.shippingapis.com/ShippingAPITest.dll
or
https://secure.shippingapis.com/ShippingAPITest.dll

You will receive this error in your Drupal log "API Authorization failure. RateV4 is not a valid API name for this protocol" and you will not see shipping rates displayed as part of the checkout process.

This is not directly an issue with commerce_usps. The underlying issue is that USPS's testing API does not support RateV4, but their production API does. I'm not sure it's worth having the commerce_usps module check if you're using the testing API and if so, revert to an older API version. This is more of a note in case anyone else is using the USPS testing API and runs in to this error. Just use the production API in the Connection Address:

http://production.shippingapis.com/ShippingAPI.dll
or
https://secure.shippingapis.com/ShippingAPI.dll

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

nodecode’s picture

Priority: Minor » Normal

I have to say this is a clear UI problem and I wholeheartedly agree there should be a "testing" mode or at least clear instructions on the homepage to explain that you must apply for full access to the production server before you can even start testing.

This could also be listed as a documentation issue.

andyg5000’s picture

The patch in #1937062: Code clean up and prepare for a full release. addresses this from a UI perspective. The documentation needs help! Any takers?

MrPeanut’s picture

Hey andyg5000, I think you could just rephrase the main module page and the settings page, like so:

USPS Module Page

USPS Settings Page

andyg5000’s picture

Thanks @MrPeanut!

I've updated the module page and the patch supplied in the issue above clears up any confusion on the admin form.

chase_hubbard’s picture

Emailing them does not work, they just tell you over and over again that you must submit test requests before they will active it (see email quote below), which you cannot do because they do not allow RateV4 test requests, and RateV2 has been disabled.

I ended up having to call them, and at first I was told no, that I had to put forth some sort of test request, and then mentioned that I was trying to use RateV4, and she gave me access instantly.

Thank you for contacting the USPS® Internet Customer Care Center. I understand that you are requesting to have your account moved to production.. I will be glad to assist.

I have found your account in test mode. I am very sorry; but I cannot activate your account because the test logs under your User ID do not show valid test requests.

andyg5000’s picture

If you call them and say that you are using "3rd party software" (not developing your own), then they will move you into production. This is how it has been for years unless they've recently changed their policy.

MrPeanut’s picture

@andyg5000 — For the record, I called about a month ago and told them I was using software that had already been tested and they immediately enabled production access. Email received the same response as #5 but calling and mentioning that worked instantly.

andyg5000’s picture

Status: Active » Closed (won't fix)