Repository navigation
Docs: fix examples and claims (Maystro webhook, ZRExpressProvider, NoEST statuses…) - #15
Merged
Merged
Conversation
…track() failures. Co-Authored-By: Claude Opus 5.5 <[email protected]>
- 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]>
Deploying dz-delivery with
|
| 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 |
There was a problem hiding this comment.
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
…s origin from the query. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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/tsandpackages/php.Docs
docs/guide-php.mdhash_equals), rejects a missing order id, and reads the order back withtrack()instead of trusting the pushed status (Maystro does not sign its requests).quantityon every product line.[]fallback forconfig()in the Laravel examples (otherwise aTypeErrorfor a carrier with no config).ZRExpressProviderbuilt fromClientOptions::fromArray()(the constructor requiresClientOptions).docs/ZREXPRESS.md,packages/php/README.mdZRExpressProviderfix.docs/CONTRACT.mduse DzDelivery\Models\…imports in the PHP interface. Yalidine origin option (fromWilayaId/fromWilayaName, required bycreateParcelandgetFees). HTTPS note: credentials travel in the query string for Elogistia, and only ecotrack/noest/ecom/mdm/elogistia reject non-https URLs.docs/PROVIDERS.mdverssement_…/return_…keys instead of*wildcards, which neither mapper implements.README.mdSite
Also includes
8dba18c(cherry-picked fromccd55ce), 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 handlestrack()failures with a 502 response.Note:
packages/php/README.mdis also the package README (synced todz-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/tsandpackages/php.hash_equals, trims and rejects a missing order id, and reads the order back withtrack()instead of trusting the unsigned pushed status.ZRExpressProviderexamples are built fromClientOptions::fromArray()(the constructor requires it), and every product line includesquantity.*wildcards, which neither mapper implements.docs/CONTRACT.mdgains the PHP interface imports, the Yalidine origin option (fromWilayaId/fromWilayaName;getFeescan take it from the query), and per-provider https notes (Elogistia sends credentials in the query string).README.mdnow states that switching carriers is only a configuration change for operations both carriers support.php/,en/php/) include the same webhook fixes, including a 502 response whentrack()fails.Note:
packages/php/README.mdis also the package README synced to Packagist on the next release.Written for commit c3a8e82. Summary will update on new commits.