Welcome to WebmasterWorld Guest from 54.221.87.97

Forum Moderators: coopster & jatar k & phranque

Message Too Old, No Replies

Fedex shipping with Perl

Business::FedEx::DirectConnect

     

jeanjerome

12:40 am on Jan 17, 2004 (gmt 0)

10+ Year Member



As anyone successfuly implemented realtime Fedex shipping rate calculation using perl using Business::FedEx::DirectConnect or something else like that?

I can't seem to make it work. I am suppose to send FedEx a Subscription Transaction but it won work and keep asking me for the meter number (which I am suppose to get with subscription transaction!):


use Business::FedEx::DirectConnect;
print "Content-type: text/html\n\n";
my $t = Business::FedEx::DirectConnect->new(uri=>'https://gateway.fedex.com/GatewayDC'
,acc => '245075844' #FedEx Account Number
,meter => '' #FedEx Meter Number (This is given after you subscribe to FedEx)
,referer => 'XYZ Inc.'# Name or Company
,host=> 'gateway.fedex.com' #Host
,Debug => 1
);

$t->set_data(3003,
1 => '123456789asa',
4003 => 'John Doe',
4008 => '123 Main St',
4011 => 'Boston',
4012 => 'MA',
4013 => '02116',
4014 => 'US',
4015 => '6175551111',
) or die $t->errstr;

print "<br>result: ".$t->lookup(498);

If you have other suggestions than this particualr module feel free!
Thanks.
Jean

sugarkane

3:05 pm on Jan 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've never used this so I might be talking nonsense here, but maybe the meter number is some kind of account number / reference number you need to obtain from fedex before you can interface to them?

If not, then *bump* hopefully someone else will have a better clue than me ;)

jeanjerome

8:51 pm on Jan 20, 2004 (gmt 0)

10+ Year Member



Thanks for you suggestion... you never know!

It does actually need the meter number. The documentation suggest to send a scripted request and it is suppose to return the meter number, only it does not. I also try using the account number and meter number from a customer to no avail.

No one had any luck with getting FedEx shipping cost in realtime using this module or something else?

Jean

DrDoc

3:43 am on Jan 21, 2004 (gmt 0)

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member



No one had any luck with getting FedEx shipping cost in realtime using this module or something else?

I've had a lot of luck with "something else", that being InterShipper. I get quotes from it daily, in real time.

jeanjerome

4:07 am on Jan 21, 2004 (gmt 0)

10+ Year Member



Good concept, but it can get expensive...!

$9.99/mo. for 100 lookup... and up from there!

Jean

DrDoc

6:34 pm on Jan 21, 2004 (gmt 0)

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Just tack 10-15 cents on to the returned shipping quote and you have it paid for by the customer :)