First we validate the cart, then tax is calculated, then we record the order. First we validate the cart, then we apply the returning-customer discount, then tax is calculated, then we record the order.
Every checkout starts by validating the cart; an invalid cart never reaches pricing.
The code behind this claim was rewritten, but the agent re-affirmed the claim untouched: the behavior did not change. Reviewing this claim means agreeing the rewrite is behavior-preserving.
When a customer who has bought before checks out, we take 10% off the total before tax.
If the order already uses a coupon code, the returning-customer discount is skipped entirely.
Tax is computed on the full order total. Tax is computed on the total after any discount has been applied.
A customer's first order always ships free, regardless of total.
Any order above €500 with a high risk score is flagged for manual review before fulfillment.
Comments, change requests and approvals land on the real GitHub pull request.