Page 3 of 13 FirstFirst 12345 ... LastLast
Results 21 to 30 of 123
  1. #21
    Join Date
    Apr 2019
    Posts
    245
    Plugin Contributions
    0

    Default Re: UPS Shipping using RESTful/OAuth API [Support Thread]

    Hi @lat9, unfortunately, I didn't turn on the debug option for this UPS...I used this plug-in in our live site for several days and no warning was received until now. It seems intermittent (I only received one warning), so maybe just a system glitch on my site.

    I just turned it on and I will report if any updates.

  2. #22
    Join Date
    Jul 2019
    Location
    Norwalk, Ohio
    Posts
    5
    Plugin Contributions
    0

    Default Re: UPS Shipping using RESTful/OAuth API [Support Thread]

    I am receiving a debug with the plugin:

    [28-Jun-2023 16:38:03 America/New_York] Request URI: /******/modules.php?set=shipping&module=upsoauth, IP address: -------
    #1 array_keys() called at [********\includes\classes\AdminNotifications.php:149]
    #2 AdminNotifications->pruneSavedState() called at [*******\includes\classes\AdminNotifications.php:34]
    #3 AdminNotifications->getNotifications() called at [********\modules.php:59]
    --> PHP Warning: array_keys() expects parameter 1 to be array, null given in ********\includes\classes\AdminNotifications.php on line 149.

    [28-Jun-2023 16:38:03 America/New_York] Request URI: /*******/modules.php?set=shipping&module=upsoauth, IP address: --------
    #1 implode() called at [*******\includes\classes\AdminNotifications.php:150]
    #2 AdminNotifications->pruneSavedState() called at [*******\includes\classes\AdminNotifications.php:34]
    #3 AdminNotifications->getNotifications() called at [*******\modules.php:59]
    --> PHP Warning: implode(): Invalid arguments passed in *******\includes\classes\AdminNotifications.php on line 150.

    [28-Jun-2023 16:38:03 America/New_York] Request URI: /*******/modules.php?set=shipping&module=upsoauth, IP address: --------
    #1 AdminNotifications->getNotifications() called at [********\modules.php:59]
    --> PHP Warning: Invalid argument supplied for foreach() in *******\includes\classes\AdminNotifications.php on line 37.

    Cart version 1.5.6b

  3. #23
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,497
    Plugin Contributions
    88

    Default Re: UPS Shipping using RESTful/OAuth API [Support Thread]

    Quote Originally Posted by bustin98 View Post
    I am receiving a debug with the plugin:

    [28-Jun-2023 16:38:03 America/New_York] Request URI: /******/modules.php?set=shipping&module=upsoauth, IP address: -------
    #1 array_keys() called at [********\includes\classes\AdminNotifications.php:149]
    #2 AdminNotifications->pruneSavedState() called at [*******\includes\classes\AdminNotifications.php:34]
    #3 AdminNotifications->getNotifications() called at [********\modules.php:59]
    --> PHP Warning: array_keys() expects parameter 1 to be array, null given in ********\includes\classes\AdminNotifications.php on line 149.

    [28-Jun-2023 16:38:03 America/New_York] Request URI: /*******/modules.php?set=shipping&module=upsoauth, IP address: --------
    #1 implode() called at [*******\includes\classes\AdminNotifications.php:150]
    #2 AdminNotifications->pruneSavedState() called at [*******\includes\classes\AdminNotifications.php:34]
    #3 AdminNotifications->getNotifications() called at [*******\modules.php:59]
    --> PHP Warning: implode(): Invalid arguments passed in *******\includes\classes\AdminNotifications.php on line 150.

    [28-Jun-2023 16:38:03 America/New_York] Request URI: /*******/modules.php?set=shipping&module=upsoauth, IP address: --------
    #1 AdminNotifications->getNotifications() called at [********\modules.php:59]
    --> PHP Warning: Invalid argument supplied for foreach() in *******\includes\classes\AdminNotifications.php on line 37.

    Cart version 1.5.6b
    Interesting ... but that's something between the 1.5.6b /admin/modules.php and the zen-cart.com notification server. I'll see what I can find out and report back.

  4. #24
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,497
    Plugin Contributions
    88

    Default Re: UPS Shipping using RESTful/OAuth API [Support Thread]

    You might try editing your admin's /admin/includes/configure.php and adding the following statement:
    Code:
    define('PROJECT_NOTIFICATIONSERVER_URL', 'https://ping.zen-cart.com/api/notifications');
    That sets the 'base' zen-cart notification server URL to the now-current version.

  5. #25
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,019
    Plugin Contributions
    61

    Default Re: UPS Shipping using RESTful/OAuth API [Support Thread]

    Having issues with this Zen Cart 1.5.8, OPC, Bootstrap & PHP 7.4

    It will not pull a quote at all. UPS needs this

    Thank you for your response. The request does not include the authentication information. Bearer Tokens are active for four hours. After the Bearer Token expire, a new one must be requested. Please provide the complete curl request with the Bearer Token.
    I tested cURL

    Connecting to UPS (port 80)...
    GOOD: CURL Connection successful.

    Connection Details:
    Array
    (
    [url] => "https://onlinetools.ups.com/security/v1/oauth/token"
    [content_type] => application/json
    [http_code] => 400
    [header_size] => 559
    [request_size] => 192
    [filetime] => -1
    [ssl_verify_result] => 0
    [redirect_count] => 0
    [total_time] => 0.215764
    [namelookup_time] => 0.000177
    [connect_time] => 0.008837
    [pretransfer_time] => 0.02153
    [size_upload] => 37
    [size_download] => 91
    [speed_download] => 421
    [speed_upload] => 171
    [download_content_length] => 91
    [upload_content_length] => 37
    [starttransfer_time] => 0.021535
    [redirect_time] => 0
    [redirect_url] =>
    [primary_ip] => 104.114.165.227
    [certinfo] => Array
    (
    )

    [primary_port] => 443
    [local_ip] => 67.43.13.48
    [local_port] => 57472
    [http_version] => 3
    [protocol] => 2
    [ssl_verifyresult] => 0
    [scheme] => HTTPS
    [appconnect_time_us] => 21228
    [connect_time_us] => 8837
    [namelookup_time_us] => 177
    [pretransfer_time_us] => 21530
    [redirect_time_us] => 0
    [starttransfer_time_us] => 21535
    [total_time_us] => 215764
    )
    Here is the log

    2023-07-05 12:14:36: OAuth Token successfully retrieved, expires in 14396 seconds.
    2023-07-05 12:14:36: Existing OAuth token is present.
    ------------------------------------------
    2023-07-05 12:14:36: RAW Rate Request
    {
    "RateRequest": {
    "Request": {
    "TransactionReference": {
    "CustomerContext": "CustomerContext",
    "TransactionIdentifier": "TransactionIdentifier"
    }
    },
    "PickupType": {
    "Code": "03"
    },
    "CustomerClassification": {
    "Code": "04"
    },
    "Shipment": {
    "Shipper": {
    "Address": {
    "City": "Yardley",
    "StateProvinceCode": "PA",
    "PostalCode": "19067",
    "CountryCode": "US"
    }
    },
    "ShipTo": {
    "Address": {
    "City": "",
    "StateProvinceCode": "",
    "PostalCode": "",
    "CountryCode": "US"
    }
    },
    "DeliveryTimeInformation": {
    "PackageBillType": "02"
    },
    "Package": [
    {
    "PackagingType": {
    "Code": "02"
    },
    "PackageWeight": {
    "UnitOfMeasurement": {
    "Code": "LBS"
    },
    "Weight": "0.4"
    },
    "PackageServiceOptions": {
    "DeclaredValue": {
    "CurrencyCode": "USD",
    "MonetaryValue": "155"
    }
    }
    }
    ]
    }
    }
    }
    ------------------------------------------
    2023-07-05 12:14:37: {
    "response": {
    "errors": [
    {
    "code": "250002",
    "message": "Invalid Authentication Information."
    }
    ]
    }
    }
    2023-07-05 12:14:41: Existing OAuth token is present.
    2023-07-05 12:14:41: Existing OAuth token is present.
    ------------------------------------------
    2023-07-05 12:14:41: RAW Rate Request
    {
    "RateRequest": {
    "Request": {
    "TransactionReference": {
    "CustomerContext": "CustomerContext",
    "TransactionIdentifier": "TransactionIdentifier"
    }
    },
    "PickupType": {
    "Code": "03"
    },
    "CustomerClassification": {
    "Code": "04"
    },
    "Shipment": {
    "Shipper": {
    "Address": {
    "City": "Yardley",
    "StateProvinceCode": "PA",
    "PostalCode": "19067",
    "CountryCode": "US"
    }
    },
    "ShipTo": {
    "Address": {
    "City": "",
    "StateProvinceCode": "",
    "PostalCode": "",
    "CountryCode": "US"
    }
    },
    "DeliveryTimeInformation": {
    "PackageBillType": "02"
    },
    "Package": [
    {
    "PackagingType": {
    "Code": "02"
    },
    "PackageWeight": {
    "UnitOfMeasurement": {
    "Code": "LBS"
    },
    "Weight": "0.4"
    },
    "PackageServiceOptions": {
    "DeclaredValue": {
    "CurrencyCode": "USD",
    "MonetaryValue": "5"
    }
    }
    }
    ]
    }
    }
    }
    ------------------------------------------
    2023-07-05 12:14:41: {
    "response": {
    "errors": [
    {
    "code": "250002",
    "message": "Invalid Authentication Information."
    }
    ]
    }
    }
    2023-07-05 12:14:48: Existing OAuth token is present.
    2023-07-05 12:14:48: Existing OAuth token is present.
    ------------------------------------------
    2023-07-05 12:14:48: RAW Rate Request
    {
    "RateRequest": {
    "Request": {
    "TransactionReference": {
    "CustomerContext": "CustomerContext",
    "TransactionIdentifier": "TransactionIdentifier"
    }
    },
    "PickupType": {
    "Code": "03"
    },
    "CustomerClassification": {
    "Code": "04"
    },
    "Shipment": {
    "Shipper": {
    "Address": {
    "City": "Yardley",
    "StateProvinceCode": "PA",
    "PostalCode": "19067",
    "CountryCode": "US"
    }
    },
    "ShipTo": {
    "Address": {
    "City": "",
    "StateProvinceCode": "GA",
    "PostalCode": "31569",
    "CountryCode": "US"
    }
    },
    "DeliveryTimeInformation": {
    "PackageBillType": "02"
    },
    "Package": [
    {
    "PackagingType": {
    "Code": "02"
    },
    "PackageWeight": {
    "UnitOfMeasurement": {
    "Code": "LBS"
    },
    "Weight": "0.4"
    },
    "PackageServiceOptions": {
    "DeclaredValue": {
    "CurrencyCode": "USD",
    "MonetaryValue": "5"
    }
    }
    }
    ]
    }
    }
    }
    ------------------------------------------
    2023-07-05 12:14:48: {
    "response": {
    "errors": [
    {
    "code": "250002",
    "message": "Invalid Authentication Information."
    }
    ]
    }
    }
    2023-07-05 12:21:35: Existing OAuth token is present.
    2023-07-05 12:21:35: Existing OAuth token is present.
    ------------------------------------------
    2023-07-05 12:21:35: RAW Rate Request
    {
    "RateRequest": {
    "Request": {
    "TransactionReference": {
    "CustomerContext": "CustomerContext",
    "TransactionIdentifier": "TransactionIdentifier"
    }
    },
    "PickupType": {
    "Code": "03"
    },
    "CustomerClassification": {
    "Code": "04"
    },
    "Shipment": {
    "Shipper": {
    "Address": {
    "City": "Yardley",
    "StateProvinceCode": "PA",
    "PostalCode": "19067",
    "CountryCode": "US"
    }
    },
    "ShipTo": {
    "Address": {
    "City": "",
    "StateProvinceCode": "GA",
    "PostalCode": "31569",
    "CountryCode": "US"
    }
    },
    "DeliveryTimeInformation": {
    "PackageBillType": "02"
    },
    "Package": [
    {
    "PackagingType": {
    "Code": "02"
    },
    "PackageWeight": {
    "UnitOfMeasurement": {
    "Code": "LBS"
    },
    "Weight": "0.4"
    },
    "PackageServiceOptions": {
    "DeclaredValue": {
    "CurrencyCode": "USD",
    "MonetaryValue": "5"
    }
    }
    }
    ]
    }
    }
    }
    ------------------------------------------
    2023-07-05 12:21:36: {
    "response": {
    "errors": [
    {
    "code": "250002",
    "message": "Invalid Authentication Information."
    }
    ]
    }
    }
    PRO-Webs, Inc. :: Recent Zen Cart Projects :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are NOT answered. You are welcome to contact us via our website for professional engagements.

  6. #26
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,497
    Plugin Contributions
    88

    Default Re: UPS Shipping using RESTful/OAuth API [Support Thread]

    @mprough, did you add the "Rating API" permission to your UPS 'app' (found the answer on stackoverflow). From that article:

    To add the Rating API, login to your developer account and go to your Apps page at

    https://developer.ups.com/apps?loc=en_US

    Then edit your app and add the Rating API.

  7. #27
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,019
    Plugin Contributions
    61

    Default Re: UPS Shipping using RESTful/OAuth API [Support Thread]

    The UPS support seems pretty mixed up with this new system, but they are now troubleshooting it on their end. I'll post what they find =)
    PRO-Webs, Inc. :: Recent Zen Cart Projects :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are NOT answered. You are welcome to contact us via our website for professional engagements.

  8. #28
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,019
    Plugin Contributions
    61

    Default Re: UPS Shipping using RESTful/OAuth API [Support Thread]

    Quote Originally Posted by mprough View Post
    The UPS support seems pretty mixed up with this new system, but they are now troubleshooting it on their end. I'll post what they find =)
    Thank you for your response. Based on the information provided, the Rating API product is not added to your Oauth credentials. Please complete the following steps:

    1. Browse to https://developer.ups.com/.

    2. Click the Profile icon and log into ups.com.

    3. Click the Profile icon and select Apps.

    This will take you to the My Apps page. All Apps that you have created will be listed on this page.

    4. Click the app name link.

    5. Click Add Products.

    6. Select the product or products you want to add to your credentials.

    7. Click Save.
    PRO-Webs, Inc. :: Recent Zen Cart Projects :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are NOT answered. You are welcome to contact us via our website for professional engagements.

  9. #29
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,497
    Plugin Contributions
    88

    Default Re: UPS Shipping using RESTful/OAuth API [Support Thread]

    Quote Originally Posted by mprough View Post
    Thank you for your response. Based on the information provided, the Rating API product is not added to your Oauth credentials. Please complete the following steps:

    1. Browse to https://developer.ups.com/.

    2. Click the Profile icon and log into ups.com.

    3. Click the Profile icon and select Apps.

    This will take you to the My Apps page. All Apps that you have created will be listed on this page.

    4. Click the app name link.

    5. Click Add Products.

    6. Select the product or products you want to add to your credentials.

    7. Click Save.
    Hmm, I thought that I'd covered that in this wiki article: https://github.com/lat9/upsoauth/wik...-Client-Secret

  10. #30
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,019
    Plugin Contributions
    61

    Default Re: UPS Shipping using RESTful/OAuth API [Support Thread]

    Quote Originally Posted by lat9 View Post
    Hmm, I thought that I'd covered that in this wiki article: https://github.com/lat9/upsoauth/wik...-Client-Secret
    Well the client was setting it up, not me.... I wanted to make sure I posted the answer.
    PRO-Webs, Inc. :: Recent Zen Cart Projects :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are NOT answered. You are welcome to contact us via our website for professional engagements.

 

 
Page 3 of 13 FirstFirst 12345 ... LastLast

Similar Threads

  1. v156 Authorize.net API with Card on File transactions support thread...
    By carlwhat in forum Addon Payment Modules
    Replies: 130
    Last Post: 24 Apr 2024, 03:51 PM
  2. v155 UPS XML: Support Thread
    By lat9 in forum Addon Shipping Modules
    Replies: 245
    Last Post: 24 Nov 2023, 10:07 PM
  3. eWAY Payment Gateway - Rapid 3.0 API [Support Thread]
    By maclean_cherry in forum Addon Payment Modules
    Replies: 40
    Last Post: 27 Nov 2020, 06:53 AM
  4. v156 Authorize.net API with Card on File transactions support thread...
    By carlwhat in forum All Other Contributions/Addons
    Replies: 16
    Last Post: 27 Apr 2020, 08:46 PM
  5. v151 Ty UPS WorldShip Support Thread
    By colosports in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 1 Jun 2014, 12:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR