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.
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-