Jump to content

UPS tracking number in PHP?


mehboob_umt

Recommended Posts

Hello,

 

I just purchased some PHP code that is supposed to connect to UPS for the Online Address Validation Tool.

The code, however, uses cURL.

 

when i enter aal fields  ups_userid, ups_password, ups_xml_access_key, ups_shipper_number are correct

 

then it return response_status_code = 0 but it should return response_status_code = 1

 

Array ( [response_status_code] => 0 [error_description] => Invalid Access License number )

 

if any one have done work on it or can solve this problem please provide some solution.

 

code is given below.

 

Best Regards,

 

 

 

 

/* UPS user information.  These values will be persisitant in your web application */

$CFG->ups_userid = "XXXXXXX"; // Enter your UPS User ID

$CFG->ups_password = "XXXXXXX"; // Enter your UPS Password

$CFG->ups_xml_access_key = "XXXXXXXXXXXXXXXX"; // Enter your UPS Access Key

$CFG->ups_shipper_number = "XXXXXX"; // Enter your UPS Shipper Number

$CFG->ups_testmode = "TRUE"; // "TRUE" for test transactions "FALSE" for live transactions

$CFG->companyname = "Some Company"; // Your Company Name

$CFG->companystreetaddress1 = "123 Somewhere Street"; // Your Street Addres

$CFG->companystreetaddress2 = ""; // Your Street Address

$CFG->companycity = "New York"; // Your City

$CFG->companystate = "NY"; // Your State

$CFG->companyzipcode = "10001"; // Your Zipcode

$CFG->companycountry = "US"; // Your Country Code

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.