ski2bbad Posted January 18, 2006 Posted January 18, 2006 Hello. I was not able to find the answer to a problem after spending a few hours reading the forum on Fedex shipping, so I decided that it was time to get some help from the experts. I have just installed Fedex Direct v2.04 (Fedex1) and I have not been successful in getting it to work. This is what I get after a VERY long time following trying to check out an item: Data sent to Fedex for Meter: 0,"211"10,"*********"4003,"Something Inc."4007,"Something Inc."4008,"********"4011,"Somewhere"4012,"ID"4013,"33442"4014,"US"4015,"*********"99,"" note: stars and fony address were added for posting purposes! I get nothing else! Could someone please help me out here? Thank you!! ski
idahovi Posted January 18, 2006 Posted January 18, 2006 Hello. I was not able to find the answer to a problem after spending a few hours reading the forum on Fedex shipping, so I decided that it was time to get some help from the experts. I have just installed Fedex Direct v2.04 (Fedex1) and I have not been successful in getting it to work. This is what I get after a VERY long time following trying to check out an item: Data sent to Fedex for Meter: 0,"211"10,"*********"4003,"Something Inc."4007,"Something Inc."4008,"********"4011,"Somewhere"4012,"ID"4013,"33442"4014,"US"4015,"*********"99,"" note: stars and fony address were added for posting purposes! I get nothing else! Could someone please help me out here? Thank you!! ski Sounds like you do not have access to the fedex test server. If this is the case, try a mock run and switch to production and see if it submits everything. You have to request additionally to be put on the fedex test api.
ski2bbad Posted January 19, 2006 Author Posted January 19, 2006 Sounds like you do not have access to the fedex test server. If this is the case, try a mock run and switch to production and see if it submits everything. You have to request additionally to be put on the fedex test api. The error above was produced while on the production server I never tried the test server as you need permission from Fedex to use it.
ski2bbad Posted January 20, 2006 Author Posted January 20, 2006 The error above was produced while on the production server I never tried the test server as you need permission from Fedex to use it. PROBLEM SOLVED!! If your host is GoDaddy you need to add this to ALL cURL sections (UPSxml, FEDEX1, etc.): curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, TRUE); curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP); curl_setopt ($ch, CURLOPT_PROXY, "http://64.202.165.130:3128"); curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE); After 7 days of trial and error I finally got it! Cheers! :D
iiibdsiil Posted February 19, 2006 Posted February 19, 2006 PROBLEM SOLVED!! If your host is GoDaddy you need to add this to ALL cURL sections (UPSxml, FEDEX1, etc.): curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, TRUE); curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP); curl_setopt ($ch, CURLOPT_PROXY, "http://64.202.165.130:3128"); curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE); After 7 days of trial and error I finally got it! Cheers! :D Hey, I'm having this same problem, but when I paste this code into my fedex1.php file, to where I thought it should go, the problem is solved, but then it gives me a bunch of crap at the top of the page. Data sent to Fedex for Rating: 0,"25"10,"XXXXXXXXXXX"498,"9505380"8,"FL"9,"33605"117,"US"17,"33605"16,"FL"50,"US"75,"LBS"1116,"I"1401,"2.8"1529,"1"1415,"2.00"68,"USD"440,"N"1273,"01"1333,"5"99,""Data returned from Fedex for Rating: 0,"125"1376,"LBS"1377,"LBS"1092,"2"1133,"7"2399-1,"0"1273-1,"01"1274-1,"01"1090-1,"USD"1089-1,"01486"431-1,"N"1402-1,"3.0"1416-1,"19.85"1417-1,"2.28"1418-1,"0.00"1419-1,"22.13"1420-1,"0.00"194-1,"TUE"195-1,"TPA"409-1,"21Feb06"2399-2,"0"1273-2,"01"1274-2,"03"1090-2,"USD"1089-2,"05980"431-2,"N"1402-2,"3.0"1416-2,"8.80"1417-2,"1.01"1418-2,"0.00"1419-2,"9.81"1420-2,"0.00"194-2,"WED"195-2,"TPA"409-2,"22Feb06"2399-3,"0"1273-3,"01"1274-3,"06"1090-3,"USD"1089-3,"00006"431-3,"N"1402-3,"3.0"1416-3,"44.85"1417-3,"5.16"1418-3,"0.00"1419-3,"50.01"1420-3,"0.00"194-3,"TUE"195-3,"TPA"409-3,"21Feb06"2399-4,"0"1273-4,"01"1274-4,"05"1090-4,"USD"1089-4,"01283"431-4,"N"1402-4,"3.0"1416-4,"16.00"1417-4,"1.84"1418-4,"0.00"1419-4,"17.84"1420-4,"0.00"194-4,"TUE"195-4,"TPA"409-4,"21Feb06"2399-5,"0"1273-5,"01"1274-5,"20"1090-5,"USD"1089-5,"07167"431-5,"N"1402-5,"3.0"1416-5,"8.40"1417-5,"0.97"1418-5,"0.00"1419-5,"9.37"1420-5,"0.00"194-5,"THU"195-5,"TPA"409-5,"23Feb06"2399-6,"0"1273-6,"01"1274-6,"90"1090-6,"USD"1402-6,"3.0"1416-6,"3.87"1417-6,"1.94"1418-6,"0.00"1419-6,"5.81"3058-6,"1"2399-7,"0"1273-7,"01"1274-7,"92"1090-7,"USD"1402-7,"3.0"1416-7,"3.87"1417-7,"0.13"1418-7,"0.00"1419-7,"4.00"3058-7,"1"99,"" Then, it shows the OSCommerce information with the correct shipping price. I inserted this at the if (MODULE_SHIPPING_FEDEX1_SERVER == 'production') { $this->server = 'gateway.fedex.com/GatewayDC'; } else { $this->server = 'gatewaybeta.fedex.com/GatewayDC'; } if (MODULE_SHIPPING_FEDEX1_CURL == "NONE") { $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_URL, 'https://' . $this->server); if (MODULE_SHIPPING_FEDEX1_TIMEOUT != 'NONE') curl_setopt($ch, CURLOPT_TIMEOUT, MODULE_SHIPPING_FEDEX1_TIMEOUT); curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, TRUE); curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP); curl_setopt ($ch, CURLOPT_PROXY, "http://64.202.165.130:3128"); curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_HTTPHEADER, array("Referer: " . STORE_NAME, "Host: " . $this->server, "Accept: image/gif,image/jpeg,image/pjpeg,text/plain,text/html,*/*", "Pragma:", "Content-Type:image/gif")); Which obviously isn't the right place due to the results. After what line am I supposed to add this? Thank you in advance.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.