dhl / module-carrier-paket

dhl/module-carrier-paket

Carrier implementation for DHL Business Customer Shipping

magento2-module Compatibility: 2.4.8-2.4.9 Code Quality: Fail Tests: Fail Security: Pass OSL-3.0

DHL Paket Shipping Carrier Extension

The DHL Paket extension for Magento® 2 integrates the DHL Business Customer Shipping
API into the order processing workflow.

Description

This extension enables merchants to request and cancel shipping labels for incoming orders
via the DHL Business Customer Shipping API (DHL Geschäftskundenversand-API).

Requirements

  • PHP >= 8.3

Compatibility

  • Magento >= 2.4.8

Installation Instructions

Install sources:

composer require dhl/module-carrier-paket

Enable module:

./bin/magento module:enable Dhl_Paket
./bin/magento setup:upgrade

Flush cache and compile:

./bin/magento cache:flush
./bin/magento setup:di:compile

Uninstallation

To unregister the carrier module from the application, run the following command:

./bin/magento module:uninstall --remove-data Dhl_Paket
composer update

This will automatically remove source files, clean up the database, update package dependencies.

Support

In case of questions or problems, please have a look at the
Support Portal (FAQ) first.

If the issue cannot be resolved, you can contact the support team via the
Support Portal or by sending an email
to [email protected].

License

OSL - Open Software Licence 3.0

Copyright

(c) 2023 DHL Paket GmbH

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog
and this project adheres to Semantic Versioning.

3.5.0

Magento 2.4.9 compatibility release

Added

  • Support for Magento 2.4.9
  • Support for PHP 8.5

3.4.3

Added

  • NL, CY, CZ, EE, LT, LV as allowed country for Closest Droppoint (CDP) service.

Changed

  • Remove HU as allowed country for Closest Droppoint (CDP) service.

3.4.2

Changed

  • Make Postal Delivery Duty Paid (PDDP) service mandatory for USA shipments under $800.

3.4.1

Added

  • France as allowed country for Closest Droppoint (CDP) service.

3.4.0

Magento 2.4.8 compatibility release + GoGreen Plus support

Added

  • Support for Magento 2.4.8
  • Support for PHP 8.4
  • GoGreen Plus service support for climate-neutral shipping
  • GoGreen Plus service support for climate-neutral return shipments

Changed

  • Upgrade to Monolog 3.x logging framework
  • Upgrade to PHPUnit 10 testing framework
  • Improved error handling for Magento 2.4.8 compatibility

Removed

  • Support for PHP 8.2

3.3.0

Added

  • Customs Input for MRN (Master Reference Number) in Packaging Popup.

3.2.0

Deutsche Post Warenpost becomes DHL Kleinpaket

Added

  • support for DHL Kleinpaket

Removed

  • support for Deutsche Post Warenpost

3.1.2

Changed

  • Sandbox Credentials

3.1.0

Fixed

  • Fixed parameter ordering issue that caused shipping label creation for post office delivery locations to fail schema validation.

3.0.0

Magento 2.4.7 compatibility release

Added

  • Support for Magento 2.4.7

Changed

  • Replace Zend_Measurement with Magento Framework Measurement
  • Use escaper instead of block for escaping in templates
  • replace sdk-api-bcs with the new sdk-api-parcel-de

Removed

  • Support for PHP 7.x
  • Support for PHP 8.1

2.9.0

Added

  • Book Postal Delivery Duty Paid (PDDP) service with deliveries to CH destinations.

Fixed

  • Mask billing numbers and API key in web service logs.

2.8.0

Added

  • Book Signed for by recipient (Empfängerunterschrift) service.
  • Book Postal Delivery Duty Paid (PDDP) service.
  • Book Closest Droppoint (CDP) service.
  • Confgure label size in module configuration.
  • Select DHL business customer portal group profile via module configuration.

Changed

  • Switch DHL shipping API from SOAP to REST. SDK classes are no longer injected via DI.

Removed

  • The printOnlyIfCodeable flag can no longer be set for individual packages.
    The module configuration setting ("Shipment Defaults") always applies.

Fixed

  • Add DE translation for non-delivery instruction options.
  • Type-cast store ID to integer, reported via #11.

2.7.0

Added

  • Display additional locker location information on the map in checkout.
  • Select endorsement (abandon, return) for international, undeliverable shipments.
  • Select Bulky Goods service with DHL Paket International shipments.
  • Select Named Person Only service with DHL Paket National shipments.
  • Select No Neighbor Delivery service with DHL Paket National shipments.

Changed

  • The Print Receiver Contact Details configuration setting is replaced by a
    Send Receiver Phone Number setting that applies to cross-border shipments only.

Fixed

  • Improve handling of apartment addresses when splitting the recipient street.
  • Prevent broken styling in module configuration, reported via #50.

2.6.2

Fixed

  • Apply min length validator to post number input in checkout.

2.6.1

Fixed

  • Fix typing error in checkout service box (DE).

2.6.0

Magento 2.4.4 compatibility release

Added

  • Support for Magento 2.4.4

Removed

  • Support for PHP 7.1

2.5.0

Added

  • Select and book delivery to DHL Parcel Shops.
  • Set or change the DHL Paket Parcel Outlet Routing email notification address individually per shipment.
  • Reset service fee configuration setting to module default ("use system value").
  • Set shipping product name as track title.

Changed

  • Configure checkout shipping method name in module configuration.

2.4.0

Added

  • Warenpost International shipping product.

2.3.0

Added

  • Europaket shipping product for EU countries.

2.2.1

Changed

  • Establish compatibility with shipping core 2.4.

2.2.0

Magento 2.4.3 compatibility release

Added

  • Support for Magento 2.4.3

2.1.0

Added

  • Offer Premium service for cross-border shipments.
  • Print a logo image on the shipment label by using a shipper address from the DHL business customer portal address book.

2.0.1

Fixed

  • Update version constraint for the netresearch/module-shipping-core package.

2.0.0

Changed

  • Replace shipping core package dependency.

Fixed

  • Include house number addition for Baden-Württemberg shipping addresses.

1.4.2

Added

  • Print receiver phone number on the shipping label if enabled via module configuration.

Changed

  • Error message on API communication exceptions is updated as suggested in issue #18.

1.4.1

Bugfix Release

Fixed

  • Update link to the DHL track & trace portal.
  • Include exponent number on the shipping label for Italian shipping addresses.

1.4.0

Customs Regulations Release

Added

  • Transmit the sender's/addressee's customs reference number with label requests.

Changed

  • Add postal charges to label requests with customs declaration.
  • Mark package dimensions required for label requests with customs declaration.
  • Mark item description and postal charges required for label requests with customs declaration.

Fixed

  • Round cash on delivery amount if value has more than two digits after the decimal point.

1.3.0

Added

  • Possibility to configure an alternative notification email for parcel outlet routing service.
  • Text block in module configuration advertising Deutsche Post Direkt services.

Changed

  • Rename Wunschpaket (Preferred Delivery) services to align with official DHL naming.

Removed

  • Contact person name no longer printed on shipping label.

1.2.0

Magento 2.4 compatibility release

Added

  • Support for Magento 2.4

Removed

  • Support for Magento 2.2

Fixed

  • Prevent Parcel Management API calls if not required.
  • Prevent attempts to bulk create Warenpost labels for orders with Cash On Delivery payment.
  • Allow letters in Participation Numbers configuration.
  • Display correct version number in module configuration info box.

1.1.0

Deutsche Post Warenpost release

Added

  • Support Warenpost
    shipping product (merchandise shipment)

Changed

Fixed

  • Use correct log file for shipment tracking web service communication
  • Do not offer Visual Check of Age service for cross-border shipments

1.0.0

Initial release

Versions
Version Stability QA Status Compatibility Released
3.5.0 stable Fail Magento 2.4.8-2.4.9 Details 2026-06-03 10:08:34
3.4.3 stable Not tested Not yet tested Details 2026-01-16 13:30:30
3.4.2 stable Not tested Not yet tested Details 2025-12-03 22:53:50
3.4.1 stable Not tested Not yet tested Details 2025-09-24 11:05:03
3.4.0 stable Not tested Not yet tested Details 2025-07-02 13:37:59
3.3.0 stable Not tested Not yet tested Details 2025-03-18 14:42:30
3.2.0 stable Not tested Not yet tested Details 2025-01-08 14:03:08
3.1.2 stable Not tested Not yet tested Details 2024-09-25 11:33:33
3.0.1 stable Not tested Not yet tested Details 2024-07-23 10:25:50
3.0.0 stable Not tested Not yet tested Details 2024-05-28 08:36:48
2.9.0 stable Not tested Not yet tested Details 2023-10-30 12:07:08
2.8.0 stable Not tested Not yet tested Details 2023-06-30 09:25:29
2.7.0 stable Not tested Not yet tested Details 2023-04-11 10:50:07
2.6.2 stable Not tested Not yet tested Details 2022-09-06 17:45:20
2.6.1 stable Not tested Not yet tested Details 2022-05-25 08:09:11
2.6.0 stable Not tested Not yet tested Details 2022-04-29 12:32:05
2.5.0 stable Not tested Not yet tested Details 2022-04-06 12:03:45
2.4.0 stable Not tested Not yet tested Details 2022-02-03 12:46:39
2.3.0 stable Not tested Not yet tested Details 2021-11-30 12:35:51
2.2.1 stable Not tested Not yet tested Details 2021-10-28 14:08:38
2.2.0 stable Not tested Not yet tested Details 2021-08-27 10:39:43
2.1.0 stable Not tested Not yet tested Details 2021-08-26 11:59:25
2.0.1 stable Not tested Not yet tested Details 2021-04-28 09:29:50
2.0.0 stable Not tested Not yet tested Details 2021-04-07 12:39:46
1.4.2 stable Not tested Not yet tested Details 2021-03-01 08:35:04
1.4.1 stable Not tested Not yet tested Details 2021-01-26 13:59:21
1.4.0 stable Not tested Not yet tested Details 2020-12-15 09:56:01
1.3.0 stable Not tested Not yet tested Details 2020-11-17 13:13:03
1.2.0 stable Not tested Not yet tested Details 2020-09-10 16:49:52
1.1.0 stable Not tested Not yet tested Details 2020-06-29 11:44:13
1.0.0 stable Not tested Not yet tested Details 2020-04-02 08:28:05

Requires 25

Package Constraint
dhl/module-shipping-core ^2.5.0
dhl/module-unified-tracking ^2.3.0
dhl/sdk-api-parcel-de ^1.3.0
dhl/sdk-api-parcel-management ^3.4.0
dhl/sdk-api-unified-location-finder ^3.3.0
ext-intl *
ext-json *
magento/framework ^103.0.8
magento/module-backend ^102.0.8
magento/module-bundle ^101.0.8
magento/module-catalog ^104.0.8
magento/module-catalog-inventory ^100.4.8
magento/module-checkout ^100.4.8
magento/module-config ^101.2.8
magento/module-configurable-product ^100.4.8
magento/module-directory ^100.4.8
magento/module-quote ^101.2.8
magento/module-sales ^103.0.8
magento/module-shipping ^100.4.8
magento/module-store ^101.1.8
monolog/monolog ^3.6.0
netresearch/config-fields-m2 ^1.3.0
netresearch/module-shipping-core ^4.0.3
php ~8.3.0||~8.4.0||~8.5.0
psr/log ^2.0.0 || ^3.0.0

Requires-dev 4

Package Constraint
fig/log-test ^1.0.0
magento/module-customer ^103.0.8
magento/module-offline-payments ^100.4.6
phpunit/phpunit ^10.5.0

Compatibility

Each Magento release line is installed on its supported PHP versions, then the module is built (DI compilation + static-content deploy) and its unit and integration suites are run. The matrix shows the lines and PHP versions the module is confirmed to install and run on. Code-quality results further down (phpstan, phpcs, …) are reported separately and never affect compatibility.

Compatibility matrix (Magento × PHP)
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 not tested not tested
2.4.8 Pass Pass
2.4.9 Pass Pass

Code Quality

Advisory checks against the module's source. Static analysis runs once across the whole module; PHPStan re-runs per Magento + PHP version because resolvable symbols differ between releases. These NEVER affect the Compatibility badge — a phpcs finding can't make a module incompatible.

Static analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

Static analysis results
Tool Status Findings Summary
PHPCS Warning 40 40 warnings (ruleset: Magento2) — 2 auto-fixable with phpcbf
PHPMD Warning 72 72 rule violations (UnusedFormalParameter:45, UndefinedVariable:10, MissingImport:7, NPathComplexity:2, TooManyPublicMethods:2)
Cpd Warning 8 8 duplicated chunks spanning 317 total lines (min-lines=5, min-tokens=70)
Composer validate Info 1 valid; 1 advisory note (composer validate --strict)

PHPStan

Type-checks the module's PHP against a real Magento install at the configured gate level. Re-runs per Magento and PHP version because resolvable symbols differ between releases. Cell → details modal.

PHPStan results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 N/A Error
2.4.8 27 27
2.4.9 27 27

Tests

Unit and integration suites, run for each applicable Magento and PHP version. A test failure speaks to the module's behaviour, not its compatibility with a Magento line, so it is reported here separately and never reddens the compatibility matrix.

Unit tests

Unit tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 N/A N/A
2.4.8 N/A N/A
2.4.9 N/A N/A

Integration tests

Integration tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 Error Error
2.4.8 Error Error
2.4.9 Error Error

Security

Security checks run directly against the module: an audit of its declared dependencies for known vulnerabilities (composer audit) and a scan of its source for malware and web-shell signatures. Each runs once. A malware detection fails the version outright.

Security results
Tool Status Findings Summary
Composer audit Pass 0
Malware scan Pass 0
License
OSL-3.0
Authors

More from dhl

View vendor
Make it pay

Turn an existing module into recurring revenue.

If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.