|Fedex shipping with Perl|
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!):
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
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!
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 ;)
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?
|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.
Good concept, but it can get expensive...!
$9.99/mo. for 100 lookup... and up from there!
Just tack 10-15 cents on to the returned shipping quote and you have it paid for by the customer :)