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;
}
Bookmarks