Two phases: the order is assembled in memory first (no database access), then confirmed in a single transaction that re-reads each product, validates stock, builds the line items, deducts stock and ...
Close all issues, pull requests, and discussions opened by this user Content in all repositories owned by your account will be closed.