Skip to content

Stage 7: harden wallet checkout and fulfilment safety - #1

Merged
Clearkess merged 9 commits into
mainfrom
stage7-checkout-safety
Nov 3, 2026
Merged

Clearkess merged 9 commits into
mainfrom
stage7-checkout-safety

Conversation

@Clearkess

Copy link
Copy Markdown
Owner

Summary

  • Reload and lock the authenticated user's cart inside the checkout transaction, serializing checkout attempts and preventing a second request from charging the same cart twice.
  • Validate current service availability inside the transaction and delete only the cart rows included in that checkout.
  • Disable legacy direct order creation because it bypasses wallet debit and stock handling.
  • Remove the unpaid direct-order form from the Orders page and direct customers through cart checkout.
  • Reject mock fulfilment adapters in production so unconfigured providers cannot report fake successful delivery.
  • Add regression coverage for repeated checkout, the legacy endpoint, and production mock-adapter blocking.

Safety

This is a draft PR targeting main. It has not been merged and no production deployment has been triggered. Please run the backend test suite and frontend build before merging.

@vercel

vercel Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
charpsdev Ready Ready Preview Nov 3, 2026 1:23am UTC

@Clearkess
Clearkess marked this pull request as ready for review November 3, 2026 01:27
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-03T01:29:10.472263Z a47d19e Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Clearkess
Clearkess merged commit 55d4502 into main Nov 3, 2026
5 checks passed

This branch was successfully deployed

1 active deployment
Preview — a47d19e0 Deployed Nov 3, 2026 by vercel[bot]
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