Skip to content

Add logging option to aid in approval to use production environment #10

Description

@GoogleCodeExporter
The UPS Shipping API requires approval before using your application in a 
production environment.  You have to perform 5 shipment requests and 4 voids 
and save all of the requests and responses that you sent and received, as well 
as the images that were created.

It would be nice to have the UPS-PHP package able to log those requests.  I 
have implemented it and have a patch available at 
http://www.brandonchecketts.com/downloads/ups.patch  Also a blog post at 
http://www.brandonchecketts.com/archives/ups-php-patch-to-log-requests-and-respo
nses regarding the subject.

It should be pretty trivial to patch the latest trunk version of the code with 
that.  Then you can enable logging by calling

<pre>
    $upsConnect->setDebugDir($debug_dir);
    $upsConnect->setTransaction(time());
</pre>

The requests and responses are saved in $debug_dir and suitable for zipping up 
and sending to UPS for approval.




If possible, describe how to implement the feature.


How will users interact with this feature?


On a scale of 1-10 how important is this feature?

Original issue reported on code.google.com by bchecke...@gmail.com on 23 Jun 2010 at 1:45

Attachments:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions