Repository navigation
fix(core): revalidate hosted checkout delivery - #146
Draft
alexasomba wants to merge 2 commits into
Draft
alexasomba wants to merge 2 commits into
alexasomba wants to merge 2 commits into
Conversation
alexasomba
marked this pull request as draft
December 3, 2026 06:38
Contributor
Author
|
@moset15 I should have checked in with you before marking this ready. Your Optional checkout postcode #140 PR was already in progress and both changes touch the same checkout handlers. I've moved this PR to draft so yours can go first. I'll preserve optional postcodes when I rebase the delivery validation. The draft also has a stock-lock cleanup test that I'd be happy to share on EmDash stock update issue #141 if useful. |
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.
Review order
Please review Optional checkout postcode #140 first. That PR was already open and makes the postcode optional. Both PRs edit the cart and checkout handlers, so this one is a draft while we coordinate the rebase. The delivery guard here should preserve the optional-postcode behavior.
The earlier checkout UI work is in Show hosted shipping options once #132 and Start checkout on the shop country #135. The delivery endpoint and regression cases in this PR can be reviewed alongside the stock discussion in EmDash 1.6 stock updates #141 once the ordering is agreed.
What changes
This is server-side delivery validation. Related hosted form work is in Show hosted shipping options once #132, Start checkout on the shop country #135, and Optional checkout postcode #140. The stock lock regression is also relevant to EmDash 1.6 stock updates #141.
Validation
Core build and typecheck, 367 Core tests and 105 Paystack tests passed. Route regressions cover a withdrawn free rate, country and region filtering, and a draft-write failure after stock was reserved.