Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

I had the USPS shipping module working at one time, but now all of a sudden it returns an invalid country code (-2147218799 - Invalid Country.). Here's what I'm sending:

 

<IntlRateRequest USERID="xxxxxxxxxxxx" PASSWORD="xxxxxxxxxxxx">

<Package ID="0">

<Pounds>3</Pounds>

<Ounces>1</Ounces>

<MailType>Package</MailType>

<Country>China</Country>

</Package>

</IntlRateRequest>

 

The USPS Webtools documentation gives an example:

 

<IntlRateRequest USERID="xxxxxxxx" PASSWORD="xxxxxxxx">

<Package ID="0">

<Pounds>2</Pounds>

<Ounces>0</Ounces>

<MailType>Package</MailType>

<Country>Albania</Country>

</Package>

</IntlRateRequest>

 

The two are identical except for the details. Is anyone else having problems with USPS?

  • 4 weeks later...
Posted

Still not sure what the problem was (could have been the Int'l API changed mentioned by bglkk), but I installed the USPS Methods 2.7b contribution and all is well.

 

I'm also convinced the "test" server does not work with the default USPS shipping module in osC.

Posted

Yah, the test server is pretty much useless. The Int'l API thing is nasty--the various shipping methods all show up fine for customers (with a nice cheap method as default)--but when they get to confirm, their choice is switched to an expensive one! All because some genius decided to change case for a few strings...

"Buy the ticket, take the ride..." -HST

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...