Skip to content

DGS-431 DGS-432 DGS-433 Improve DPD shipment creation error messages#175

Open
TLabutis wants to merge 1 commit into
DPDBaltics:mainfrom
TLabutis:DGS-431-improve-shipment-error-messages
Open

DGS-431 DGS-432 DGS-433 Improve DPD shipment creation error messages#175
TLabutis wants to merge 1 commit into
DPDBaltics:mainfrom
TLabutis:DGS-431-improve-shipment-error-messages

Conversation

@TLabutis

@TLabutis TLabutis commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Summary

Improves the error messages shown to the shop owner when a DPD shipment cannot be created. Driven by a support case where a merchant saw the raw DPD error Unable to find user to authenticate! and could not tell it meant wrong API credentials.

Covers three separate tickets:

  • DGS-431 - the failure message was broken English (Failed to create DPD shipment API status failed :). Reworded into a clear sentence.
  • DGS-432 - when DPD rejects the API credentials, the cryptic technical error is now replaced with an actionable message telling the owner to check the web service API username/password in Basic Settings (not the DPD web portal login). New ApiErrorUtility for detection, with a unit test.
  • DGS-433 - error text was baked inside the l() translation key, so it never translated. Variables moved out via sprintf so messages now translate to the shop language.

Release

  • Improved shipment creation error message to be a clear, readable sentence
  • Improved DPD API authentication error to explain that the API credentials in Basic Settings were rejected
  • Fixed shipment creation error messages not being translated to the shop language

Testing

  • New unit test tests/Unit/Util/ApiErrorUtilityTest.php covers authentication error detection (exact message, casing, unrelated errors, empty, null).
  • Detection logic verified against the real DPD error string Unable to find user to authenticate!.

- DGS-431: reword the shipment creation failure message into a clear sentence
- DGS-432: detect DPD authentication errors and show an actionable message
  pointing to the web service API credentials in Basic Settings
  (new ApiErrorUtility + unit test)
- DGS-433: move variables out of the translated strings so shipment
  creation errors translate to the shop language
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant