A browser can display a price, but it should not be the authority for what an order costs. The server should validate the selected options against the current catalog and calculate the amount itself.
Pizza Builder recalculates prices as items enter the cart and checks them again at checkout. Order snapshots keep purchased details attached to the order when the catalog changes later.
This approach supports a clearer order record. It does not replace payment-provider checks, operational controls, or a review of the complete production threat model.
Explore the product demo