The price displayed in the cart is not the price authorised
An online merchant calculates a promotional discount in browser code and posts a discounted line total to its checkout API. A customer can legitimately sign in, keep a valid payment token and still alter a field that the server should calculate for itself. The resulting order may look like an ordinary sale to the fraud team even though the promotion rule was never satisfied. The security problem is the trust boundary between the customer-controlled cart and the merchant’s authoritative price and promotion services; stronger login does not move that boundary.
List every value the checkout accepts: product identifier, variant, quantity, customer segment, shipping destination, coupon code, tax treatment, currency, gift credit, loyalty redemption and line-level discount. Mark which values are suggestions from the client and which must be recomputed by the server. Establish an order quote with a versioned price catalogue and promotion rule set, then ensure the final commitment uses that quote or recalculates it atomically. A visually disabled button or JavaScript validation is not evidence that the API will reject a modified request.
Reproduce the manipulation safely
Use a test merchant and synthetic products, with one item eligible for a promotion and another explicitly excluded. Capture the legitimate request to calculate a cart, then send a modified request in the authorised test environment with a lower line total, a negative fee or a coupon applied twice. The expected result is a server-side validation failure or a fresh authoritative quote. Test concurrent updates, because two legitimate-looking requests may both redeem a single-use promotion if the redemption ledger is not locked to an atomic transaction.
Include a boundary case where the discount is legitimate, such as a valid loyalty tier or staff-approved price override. Controls that reject all exceptions can push customer-service agents to issue manual refunds. A valid exception needs an independent entitlement and an auditable reason; it should not be expressed as a client-supplied boolean claiming "manager approved". When testing production-like systems, prevent real payments or deliveries by using non-settling payment modes and isolated fulfilment endpoints under explicit authority.
Protect the sequence from payment to fulfilment
Price integrity continues after checkout. Payment authorisation amount, captured amount, order ledger total, refund allocation and fulfilment instruction must agree under a documented rounding and currency policy. Test a delayed payment webhook arriving after an order edit, or two callbacks with the same event ID. Replayed confirmations should be idempotent, and a valid callback signature should not make an altered order state legitimate. Validate the event’s object identifiers, amount, currency, expected order state and merchant account before allowing fulfilment or issuing credit.
Marketplace integrations add another edge: a partner can submit a price feed with discounts that do not apply to direct-site sales. Tag the origin and authority of price changes, and have the pricing service apply eligibility in the correct context. Track catalogue changes and promotional rule revisions with effective dates. An attacker may not need to intercept payment if they can create a low-value order that the warehouse accepts as fully paid. Reconcile the commerce system with the payment provider and goods-dispatch records to identify such integrity gaps.
Make the business rule reviewable
A robust promotion rule expresses mutually exclusive conditions, maximum redemption counts, eligible users or products, time windows and stacking restrictions. Define how tax and shipping interact with discounts, especially where returns or split shipments recalculate amounts. Product, finance and security teams should review the exact edge cases, because a technically valid arithmetic operation can still violate a commercial rule. Maintain a test set for fixed-price items, bundles, gift cards, new customers, existing loyalty members and expired coupons.
Where systems use a central promotion engine, require other channels—including mobile apps, support consoles and partner order APIs—to call the same authoritative validation. A second checkout path with copied discount logic can diverge after an update. Monitor unexpected negative margins, repeated low-value orders, manual discount overrides and mismatches between the booked and settled amount. Do not label every unusually cheap purchase fraudulent; the investigation should include campaign configuration and legitimate compensation workflows.
Acceptance evidence before a release
The release owner should be shown a normal promotion that succeeds, a tampered line price that fails, repeated single-use coupon requests of which only one succeeds, and a replayed payment confirmation that cannot create a second fulfilment instruction. Include a controlled refund to prove the reconciliation ledger remains consistent. Each test needs its request identifier, expected state transition, observed response and database outcome. If a downstream vendor cannot support a negative test, record that limitation and the compensating reconciliation control. A merchant’s defence is an order lifecycle that refuses unauthorised value changes, not simply a cart interface that looks correct.
Check for rounding, quantity and race-condition variants
A cart can pass a simple "total must be positive" rule while applying discounts in an unintended sequence. Test a synthetic bundle in which promotion A excludes sale products, promotion B caps the discount at a fixed amount and a loyalty credit may be used only once. Compare the expected total to the server-generated quote after quantity changes, shipping-address updates and currency selection. When fractional currency arithmetic is involved, use an agreed decimal and rounding policy; binary floating-point quirks should not let the client determine its own final liability.
Exercise two sessions attempting to redeem the same one-use code concurrently. The application should prevent duplicate consumption even when both requests passed an eligibility check before either commits. A database transaction or equivalent concurrency control should protect the state change. Record the resulting order and promotion-ledger entries, not only the HTTP status codes. A 200 response for both requests might be appropriate for an idempotent retry of the same order, but not for creation of two distinct discounted purchases.
Keep support-initiated refunds within the same ledger
A support agent may be allowed to compensate a customer after a shipping error, yet that should not make the agent’s console a general way to alter settled order value. Define authorised refund reasons, maximum amounts, approval thresholds and which payment transaction each refund offsets. Test a partial refund after a split shipment and an attempted refund that exceeds the captured amount. Require the system to reject invalid state transitions without creating a second fulfilment instruction or an unbacked customer credit.
Track merchant loss exposure separately from data confidentiality. A campaign misconfiguration may cause real losses without any unauthorised user, while API tampering may indicate deliberate abuse. Investigation should use order IDs, promotion versions, processor references and dispatch records before attributing intent. Security and finance should agree the stop rule for a faulty promotion that is actively taking orders, including how legitimate customer commitments will be treated. The right acceptance decision protects both the customer experience and the merchant’s underlying transaction ledger.
A further control to demonstrate
The finance team should also reconcile adjustments made after the original sale. A customer who returns one item from a discounted bundle may not be entitled to the original full unit price as a refund; that value depends on the promotion contract and the order ledger. Test returns against the allocated discount and the captured payment balance. Ensure that a second refund attempt does not succeed merely because the first was processed asynchronously. Evidence should include the state before and after each change so that an apparent abuse pattern can be distinguished from a legitimate customer remedy.
Final verification detail
Apply release controls to promotion configuration changes as well as checkout code. A valid administrator can accidentally create a store-wide discount with no upper bound; server-side enforcement will faithfully apply an incorrect business rule. Require peer review for material price changes, controlled effective dates and an emergency rollback. Distinguish authorised-but-mistaken promotions from customer request tampering when interpreting suspicious low-value sales.
Sources and further reading
How Next Defence supports this work
Next Defence can help teams assess merchant checkout integrity using controlled API manipulation, promotion-concurrency cases and payment-to-fulfilment reconciliation. Engagements are scoped to authorised systems and the organisation’s operational and legal requirements.