homepage Welcome to WebmasterWorld Guest from 54.211.219.68
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
Forum Library, Charter, Moderators: coopster & jatar k & phranque

Perl Server Side CGI Scripting Forum

    
Fedex shipping with Perl
Business::FedEx::DirectConnect
jeanjerome

10+ Year Member



 
Msg#: 3423 posted 12:40 am on Jan 17, 2004 (gmt 0)

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

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3423 posted 3:05 pm on Jan 20, 2004 (gmt 0)

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

10+ Year Member



 
Msg#: 3423 posted 8:51 pm on Jan 20, 2004 (gmt 0)

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

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



 
Msg#: 3423 posted 3:43 am on Jan 21, 2004 (gmt 0)

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

10+ Year Member



 
Msg#: 3423 posted 4:07 am on Jan 21, 2004 (gmt 0)

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

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

Jean

DrDoc

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



 
Msg#: 3423 posted 6:34 pm on Jan 21, 2004 (gmt 0)

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved