Jump to content

[solved]Moving to UPS Production servers


Recommended Posts

I am using 1.4.2 and I called UPS tech support about moving my api key to production access and the person I spoke too said they didn't know and to email them. So I have been emailing for a little bit and this person has said to direct my module to: https://onlinetools.ups.com/ups.app/xml/Rate.

 

I opened module/upscarrier/upscarrier.php and on line 1718 I find this:

 

// Curl Request
$ch = curl_init("https://www.ups.com/ups.app/xml/Rate");
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch,CURLOPT_POST,1);
curl_setopt($ch,CURLOPT_TIMEOUT, 60);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch,CURLOPT_POSTFIELDS,$xml);
$result = curl_exec ($ch);

 

Is $ch what I want to change?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...