FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Re: FEDEX Shipping
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Re: FEDEX Shipping [message #179284] Sun, 30 September 2012 23:09 Go to next message
Peter H. Coffin is currently offline  Peter H. Coffin
Messages: 245
Registered: September 2010
Karma: 0
Senior Member
On Sun, 30 Sep 2012 12:35:48 -0400, j wrote:
> Any suggestions for shipping rate php code for FEDEX?
>
> I've previously done UPS and USPS and found them to be no joy,
> particularly USPS.
>
> Any helpful suggestions will be much appreciated. At the moment the
> FedEx API looks like a convoluted mess...

Lookup table with enough padding in the figures to justify the
occasional miscalculation is the usual way things are handled.

--
A *huge* proportion of people cannot make *correct and accurate*
generalisations of principles. They have to learn everything as if
it's an unrelated piece of crap, BECAUSE THEY ARE STUPID! PEOPLE ARE
STUPID! -- Thorfinn in the Monastery
Re: FEDEX Shipping [message #179288 is a reply to message #179284] Mon, 01 October 2012 23:09 Go to previous message
Doug Miller is currently offline  Doug Miller
Messages: 171
Registered: August 2011
Karma: 0
Senior Member
j <mung_me(at)att(dot)net> wrote in news:k49sc0$dm4$1(at)news(dot)albasani(dot)net:

> Any suggestions for shipping rate php code for FEDEX?
>
> I've previously done UPS and USPS and found them to be no joy,
> particularly USPS.

Be careful with UPS -- they still haven't fixed a long-standing bug with zip code validation
(or, more correctly, with their complete *failure* to validate zip codes).

Specifically, UPS will accept any string of *four* numbers as a zip code, as long as the first
*three* correspond with a valid zip code *somewhere*, and provide a rate quote based on
that.

However, the rate quotes they provide might as well be random numbers. Suppose the
customer mistakenly enters 8072 as the ZIP code. Did he mean 80072, or 80772, or 80722,
or 08072? There's no way to know. Yet instead of rejecting the rate request, they return a
rate quote, which is almost surely incorrect.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Count how many times a value occurs in an array
Next Topic: Pls help with output of csv file to browser?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 10:40:26 GMT 2024

Total time taken to generate the page: 0.02197 seconds