Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

UPS XML Contribution (debugging)


Dangeo1

Recommended Posts

I've got a problem with my UPS rates and I'm trying to get UPS to help me solve them.

 

Basically, their XML rates are lower than the rates actually charged. I'm a small store and take my UPS deliveries to the retail outlet for shipment. So, I sent them an e-mail complaining about it.

 

We've checked all the "usual" suspects and now they want a capture of the XML string that was sent requesting the rate, and the response received. (along with other information).

 

It'll be easy enough to re-create the order, but how can I go about grabbing the XML data stream?

Link to comment
Share on other sites

from the readme:

 

If you fail to get quotes, an error message will usually tell you why. Make sure your

origin information is correct, and use the proper two-letter codes for your country and

state/province.

 

If you STILL don't get any quotes, you can enable logging which will record the request/

response of the transactions. Look for and uncomment the line in upsxml.php:

 

//$this->logfile = '/tmp/upsxml.log';

 

Change the location of the log to something you can read, and give the shopping cart a whirl.

Your request/response will eventually show up there.

 

------------------------------------

Disclaimer:

 

This disclaimer disclaims the previous disclaimer which disclaims:

 

This revision is based on ups.php v.1.53, which employs the UPS cgi method that has been

deprecated for over a year and although it appears to remain functional is no longer officially

supported by UPS. The currently supported UPS API requires XML requests through a secure socket

layer, for which there is not yet an osC implementation.

 

------------------------------------

 

Also on the contributions, it states to use contributions at your own risk.

Link to comment
Share on other sites

from the readme:

 

If you fail to get quotes, an error message will usually tell you why. Make sure your

origin information is correct, and use the proper two-letter codes for your country and

state/province.

 

If you STILL don't get any quotes, you can enable logging which will record the request/

response of the transactions. Look for and uncomment the line in upsxml.php:

 

//$this->logfile = '/tmp/upsxml.log';

 

Change the location of the log to something you can read, and give the shopping cart a whirl.

Your request/response will eventually show up there.

 

------------------------------------

Disclaimer:

 

This disclaimer disclaims the previous disclaimer which disclaims:

 

This revision is based on ups.php v.1.53, which employs the UPS cgi method that has been

deprecated for over a year and although it appears to remain functional is no longer officially

supported by UPS. The currently supported UPS API requires XML requests through a secure socket

layer, for which there is not yet an osC implementation.

 

------------------------------------

 

Also on the contributions, it states to use contributions at your own risk.

Thanks!

 

Re-created order contents/address, and made a /tmp/upsxml.log file.

 

It's not working yet, but I haven't given up.

Link to comment
Share on other sites

  • 1 month later...

I'm having trouble with the ups xml module.

I fixed the spelling error but still am unable to connect to the ups server.

 

I would like to check the output log but don't know how to set this up ?!? :(

I disabled the '//' but nothing gets saved ?!?

 

Anyone knows what might be wrong ?

 

Thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...