Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

what step am I missing?


  • You cannot reply to this topic
1 reply to this topic

#1 dirthawker

  • Community Member
  • 81 posts
  • Real Name:Andrea
  • Location:SF California, USA

Posted 05 January 2005, 23:01

We've got an account set up with USPS. We sent them a message saying to enable us for the production server, and we've gotten their reply back. In osC, USPS shipping is enabled with the Methods contribution. Username and password have been entered and various methods chosen.

So why is it upon checkout we still get the error message "An error occured with the USPS shipping calculations. If you prefer to use USPS as your shipping method, please contact the store owner." ?

We do have a number of items that are less than 1 pound. We enter them as .2 for 2/10th of a pound. Should this be changed to 1?

I read the help on their API on the USPS website and am afraid I don't understand how to test the username/password combo other than to try it through osC.

Have I missed something really, really obvious? Can someone write out for me how to test my USPS username/pwd? Thank you

Edited by dirthawker, 05 January 2005, 23:04.


#2 dirthawker

  • Community Member
  • 81 posts
  • Real Name:Andrea
  • Location:SF California, USA

Posted 08 January 2005, 04:39

dirthawker, on Jan 5 2005, 11:01 PM, said:

We've got an account set up with USPS.  We sent them a message saying to enable us for the production server, and we've gotten their reply back.  In osC, USPS shipping is enabled with the Methods contribution.  Username and password have been entered and various methods chosen.

So why is it upon checkout we still get the error message "An error occured with the USPS shipping calculations.  If you prefer to use USPS as your shipping method, please contact the store owner." ?

<{POST_SNAPBACK}>


Just a followup:
After a couple emails to USPS I found out that even though they had *claimed* they had enabled us for production, they actually hadn't. This confirms my great faith in USPS, through rain, sleet, snow and hail, etc.

And on a more serious tone, confirms my faith in osCommerce, which worked seamlessly once we were really enabled. B)

For anyone who's been confused or annoyed by the slightly obscure nature of the USPS documentation, to test the production server's response you would enter the following string into your browser, inserting your username/password as appropriate:

http://production.shippingapis.com/Shippin...t;RateV2Request USERID="uuuu" PASSWORD="pppp"><Package ID="0"><Service>PRIORITY</Service><ZipOrigination>10022</ZipOrigination><ZipDestination>20008</ZipDestination><Pounds>10</Pounds><Ounces>5</Ounces><Container>Flat Rate Box</Container><Size>REGULAR</Size></Package></RateV2Request>

It will ask you to save a file ShippingAPI.dll. This is not actually a dll file but a plaintext. If you put on a .txt extension before you save it, Windows will not give you a PITA when opening it up in wordpad or other text editor. If you're set up correctly and it works, it should read:

<?xml version="1.0"?>
<RateV2Response><Package ID="0"><ZipOrigination>10022</ZipOrigination><ZipDestination>20008</ZipDestination><Pounds>10</Pounds><Ounces>5</Ounces><Container>FLAT RATE BOX</Container><Size>REGULAR</Size><Zone>3</Zone><Postage><MailService>Priority Mail Flat Rate Box (11.25" x 8.75" x 6")</MailService><Rate>7.70</Rate></Postage><Postage><MailService>Priority Mail Flat Rate Box (14" x 12" x 3.5")</MailService><Rate>7.70</Rate></Postage></Package></RateV2Response>

Otherwise it will give you some sort of error message.

-andrea-