Is there anyway to see what data is being sent to and returned from UPS? It appears that the rates I'm getting back are not the rates I'm expecting and would like to see exactly what data UPS is rating for.

1 Answer 1


I spent about a week writing a very complex bespoke live rates CT plugin recently.

To debug it, I used kint.

I installed it via composer and load it at the top of my plugin via:

require '..//composer/vendor/autoload.php';

Then I use Kint::enabled(true); d($some_string); d($some_var); etc

To debug.

I haven't used UPS but it looks like ~ line 474 is what you need:

        $url = "https://www.ups.com/ups.app/xml/Rate";      
        $data = (string) $access->asXML(). (string) $rating->asXML(); 
        $result =   new SimpleXMLElement($this->EE->cartthrob_shipping_plugins->curl_transaction($url,$data)); 

...so if you:


...you should get what you need.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.