UPS tracking number in PHP?

Discussion in 'PHP' started by mehboob_umt, Sep 20, 2007.

  1. #1
    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
     
    mehboob_umt, Sep 20, 2007 IP