Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,478
    Plugin Contributions
    88

    red flag USPS "retiring" unsecure (http://) API URL

    Per the USPS release notes (https://www.usps.com/business/web-to...ease-notes.pdf), the unsecure (http://production.shippingapis.com/shippingapi.dll) will be 'retired' later this month. Instead the API URL should change to https://secure.shippingapis.com/ShippingAPI.dll.

    In the USPS-2018-03-28 K10 version of the USPS shipping-module, you'll need to edit /includes/modules/shipping/usps.php, starting at line 1298 (similar changes will be needed for prior versions, but you should update in that case anyway):
    Code:
        switch (MODULE_SHIPPING_USPS_SERVER) {
          case 'production':
          $usps_server = 'http://production.shippingapis.com';
          $api_dll = 'shippingapi.dll';
          break;
          case 'test':
          default:
    // 09-7-2014
    //Secure APIs: https://stg-secure.shippingapis.com/ShippingApi.dll
    //Non-secure APIs: http://stg-production.shippingapis.com/ShippingApi.dll
          $usps_server = 'http://stg-production.shippingapis.com';
          $api_dll = 'ShippingApi.dll';
          break;
        }
    to read
    Code:
        switch (MODULE_SHIPPING_USPS_SERVER) {
          case 'production':
          $usps_server = 'https://secure.shippingapis.com';
          $api_dll = 'ShippingApi.dll';
          break;
          case 'test':
          default:
    // 09-7-2014
    //Secure APIs: https://stg-secure.shippingapis.com/ShippingApi.dll
    //Non-secure APIs: http://stg-production.shippingapis.com/ShippingApi.dll
          $usps_server = 'https://stg-secure.shippingapis.com';
          $api_dll = 'ShippingApi.dll';
          break;
        }

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: USPS "retiring" unsecure (http://) API URL

    FYI: Downloads of the USPS-2018-03-28 K10 version after October 2, 2020 from https://www.zen-cart.com/downloads.php?do=file&id=1292 will include this correction.

    (So you could download K10 again and use the /includes/modules/shipping/usps.php file to replace your current one, instead of doing the edits manually.)
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. v152 USPS retiring RateV3 API ...
    By lat9 in forum Addon Shipping Modules
    Replies: 4
    Last Post: 13 May 2014, 06:42 AM
  2. USPS Web Tools will be retiring our RateV3 API later this year
    By svetlae in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 9 May 2014, 07:16 PM
  3. Replies: 6
    Last Post: 18 Aug 2010, 10:32 PM
  4. USPS Api
    By meganqu in forum Addon Shipping Modules
    Replies: 0
    Last Post: 2 Jul 2007, 08:14 PM

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