Added
A B2B buyer's checkout requires a delivery appointment before the order can be submitted. The existing checkout uses the standard checkout flow, and the appointment must be captured in the storefront, validated before order placement, and persisted with the order. The implementation must work with the platform's checkout lifecycle rather than bypass it with a separate order-creation endpoint. What is the best design?
A checkout component integrated with the supported checkout flow can collect the value at the appropriate stage, prevent progression when validation fails, and pass the data through the checkout lifecycle for persistence. Direct order creation bypasses normal checkout processing and risks inconsistent pricing, inventory, and order handling. Browser storage is neither a durable order record nor a trusted persistence path. A product-level field describes catalog data and cannot represent a buyer-selected delivery appointment for a specific order.