Linux 软件免费装
Banner图

Dependent Media Live Rates for USPS

开发者 hsojhsoj
更新时间 2026年5月1日 03:38
PHP版本: 7.4 及以上
WordPress版本: 6.9
版权: GPLv2 or later
版权网址: 版权信息

标签

shipping woocommerce usps shipping-rates live-rates

下载

1.1.0

详情介绍:

Dependent Media Live Rates for USPS calculates real-time USPS shipping rates at checkout using your own USPS Developer Portal credentials, by talking directly to the USPS REST API (the current API — not the retired Web Tools API). This plugin is not affiliated with or endorsed by the United States Postal Service. "USPS" is a trademark of the United States Postal Service and is used in this plugin's name solely to describe the service the plugin integrates with. Domestic US International Other features You bring your own USPS API credentials This plugin does not proxy rate requests through any third party. You register your store as a USPS Developer Portal application once, paste the Consumer Key and Consumer Secret into the plugin settings, and rates go directly from USPS to your site. There is no monthly fee and no per-request cost. Register at: https://developers.usps.com/ Privacy When a customer reaches checkout, the plugin sends the destination postal code (and country, for international) along with the package dimensions and weight to the USPS REST API at apis.usps.com. No customer name, email, or other personally identifying information is transmitted. OAuth2 access tokens are cached locally in a WordPress transient. Source code Development happens on GitHub: https://github.com/Dependent-Media/dm-usps-shipping. Issues and pull requests welcome.

安装:

  1. Upload the plugin files to /wp-content/plugins/dependent-media-live-rates-for-usps/, or install through the WordPress plugins screen.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. Register a USPS Developer Portal application at https://developers.usps.com/ and copy the Consumer Key and Consumer Secret.
  4. Go to WooCommerce → Settings → Shipping, open the shipping zone you want to offer USPS rates in, and add USPS Live Rates (DM) as a shipping method.
  5. Click into the method, paste your Consumer Key and Consumer Secret, pick which services to offer, and save.
  6. Test with a real cart to confirm rates are returned.

升级注意事项:

1.1.0 Plugin renamed to "Dependent Media Live Rates for USPS" to comply with WordPress.org naming guidance. No functional changes; existing settings, shipping zones, and credentials are preserved. 1.0.1 Metadata-only fix to the Plugin URI header. No functional changes. 1.0.0 First public release. No breaking changes from 0.3. 0.3.0 Adds multi-box packing. Existing carts may show different (more accurate) totals after upgrading. Switch the new Packing strategy setting to "Combined" to preserve v0.2 behavior. 0.2.0 Adds international shipping rates. Existing domestic settings are preserved automatically. 0.1.0 Initial release.

常见问题:

Does this work with the old USPS Web Tools API?

No. The USPS Web Tools API was retired in early 2026. This plugin uses the current USPS REST API (apis.usps.com) exclusively.

Is there a monthly fee?

No. The plugin is free and calls the USPS API directly with your own credentials. USPS does not charge for rate lookups on their Developer Portal at the time of writing.

What happens if the USPS API is down?

If you enable the fallback rate in settings, the plugin will show that flat rate when the API is unreachable or returns an error. If the fallback is disabled, no rate will be shown and the customer will see WooCommerce's standard "no shipping options" message.

Does this support international rates?

Yes. First-Class Package International, Priority Mail International, and Priority Mail Express International are all supported. The plugin automatically routes to the correct USPS endpoint based on the destination country.

Does this support shipping labels?

No. This plugin only calculates rates at checkout. It does not generate or purchase labels. You can continue to use whatever label service you prefer (PirateShip, Stamps.com, ShipStation, USPS Click-N-Ship, etc.).

How does multi-box packing work?

By default, each cart line item is sent to USPS as its own package and the per-service costs are summed. For example, a cart with three different products gets three separate USPS rate quotes for each enabled service, then totals them. If a single line item is heavy enough that one box would exceed USPS's weight limit, the plugin splits that line into multiple boxes automatically. You can switch to a "combined" single-box mode in settings if your store genuinely ships everything in one box.

How are flat-rate-box prices handled?

They aren't shown. The plugin only considers true dimensional rates (USPS rate indicators SP, PA, DR, DN) — these reflect the actual cost of shipping a box of the cart's dimensions. Flat-rate-box, cubic, and presort rates are excluded because they require specific packaging or mailing agreements that the plugin can't guarantee the merchant will use.

更新日志:

1.1.0 1.0.1 1.0.0 0.3.0 0.2.0 0.1.0