Skip to content

Docs: fix examples and claims (Maystro webhook, ZRExpressProvider, NoEST statuses…) - #15

Merged
developing-off merged 3 commits into
mainfrom
docs/fix-examples
Nov 6, 2026
Merged

developing-off merged 3 commits into
mainfrom
docs/fix-examples

Conversation

@developing-off

@developing-off developing-off commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner

Aligns the Markdown docs with the fixes already made on the site in #14. The errors were found by the review of #14 and checked against packages/ts and packages/php.

Docs

File Fix
docs/guide-php.md Maystro webhook: checks a secret in the URL (hash_equals), rejects a missing order id, and reads the order back with track() instead of trusting the pushed status (Maystro does not sign its requests). quantity on every product line. [] fallback for config() in the Laravel examples (otherwise a TypeError for a carrier with no config). ZRExpressProvider built from ClientOptions::fromArray() (the constructor requires ClientOptions).
docs/ZREXPRESS.md, packages/php/README.md Same ZRExpressProvider fix.
docs/CONTRACT.md use DzDelivery\Models\… imports in the PHP interface. Yalidine origin option (fromWilayaId / fromWilayaName, required by createParcel and getFees). HTTPS note: credentials travel in the query string for Elogistia, and only ecotrack/noest/ecom/mdm/elogistia reject non-https URLs.
docs/PROVIDERS.md NoEST: exact verssement_… / return_… keys instead of * wildcards, which neither mapper implements.
README.md "Switch carriers": only a configuration change for operations both carriers support; link to the matrix.

Site

Also includes 8dba18c (cherry-picked from ccd55ce), which #14 missed because it was pushed after the merge: the Maystro webhook example on the site (php/, en/php/) rejects a missing order id and handles track() failures with a 502 response.

Note: packages/php/README.md is also the package README (synced to dz-delivery-php / Packagist on the next release).

🤖 Generated with Claude Code


Summary by cubic

Aligns the Markdown docs and site examples with the fixes made in #14, verified against packages/ts and packages/php.

  • The Maystro webhook example checks a URL secret with hash_equals, trims and rejects a missing order id, and reads the order back with track() instead of trusting the unsigned pushed status.
  • ZRExpressProvider examples are built from ClientOptions::fromArray() (the constructor requires it), and every product line includes quantity.
  • NoEST status keys are listed exactly instead of * wildcards, which neither mapper implements.
  • docs/CONTRACT.md gains the PHP interface imports, the Yalidine origin option (fromWilayaId/fromWilayaName; getFees can take it from the query), and per-provider https notes (Elogistia sends credentials in the query string).
  • README.md now states that switching carriers is only a configuration change for operations both carriers support.
  • The site PHP examples (php/, en/php/) include the same webhook fixes, including a 502 response when track() fails.

Note: packages/php/README.md is also the package README synced to Packagist on the next release.

Written for commit c3a8e82. Summary will update on new commits.

View guided diff Turn on auto-fix

developing-off and others added 2 commits November 6, 2026 17:25
- guide-php.md: Maystro webhook example checks a URL secret, rejects a
  missing order id and reads the order back with track() instead of
  trusting the pushed status; quantity on every product line; []
  fallback for the Laravel config; ZRExpressProvider built from
  ClientOptions::fromArray().
- ZREXPRESS.md and packages/php/README.md: same ZRExpressProvider fix.
- CONTRACT.md: PHP interface imports, Yalidine origin option, https and
  credential transport described per provider.
- PROVIDERS.md: NoEST verssement_/return_ keys listed exactly (the
  mappers have no prefix rules).
- README.md: switching carriers is a config change only for operations
  both carriers support.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Deploying dz-delivery with  Cloudflare Pages  Cloudflare Pages

Latest commit: c3a8e82
Status: ✅  Deploy successful!
Preview URL: https://55f426cf.dz-delivery.pages.dev
Branch Preview URL: https://docs-fix-examples.dz-delivery.pages.dev

View logs

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 8 files

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread docs/CONTRACT.md Resolved
Comment thread php/index.html Resolved
…s origin from the query.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@developing-off
developing-off merged commit 45aa32d into main Nov 6, 2026
9 checks passed
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