The WooCommerce total must settle before the customer pays
Tax rounding, coupons and shipping changes can produce different totals for legitimate reasons. Establish the final order calculation and make the supported payment attempt agree with it.
In this article
A shopper applies a coupon, changes the delivery address and reaches the card fields. The order summary changes along the way. Which version of that purchase will the payment collect?
The merchant needs a better answer than whichever total appeared last on someone’s screen. Tax settings, promotion rules and shipping choices have to produce an explainable final order. The payment connection then needs to represent the purchase the customer actually accepts.
Know which price the store is calculating
WooCommerce distinguishes whether entered product prices include tax, how prices are displayed and which address supplies the tax calculation. Its shipping tax class is another setting. These choices describe the software’s calculation; the merchant’s applicable tax treatment must be established separately.
Have the person responsible for the store explain the intended price with a representative order. Preserve the products, quantities, address, discount, shipping selection and tax components. If a tax extension supplies the result, identify it too. A calculation reconstructed from the product’s current price alone may not describe that customer’s order.
This makes the support question concrete. Is the storefront displaying the intended price differently, is a calculation wrong, or does the payment request still contain an earlier amount? Those findings call for different repairs. Changing gateway credentials cannot reconcile two versions of the same cart.
A rounding setting is not a universal repair
WooCommerce offers tax rounding at subtotal level instead of per line. Separately, its documentation warns about unexpected rounding when Prices entered with tax, Display prices in the shop and Display prices during cart and checkout use conflicting tax display choices. The subtotal rounding option does not fix that separate settings conflict.
Consider three hypothetical taxable lines of $3.33 at an illustrative 10% rate. Rounding each line’s $0.333 tax to cents gives $0.99 in total tax. Rounding the combined $0.999 gives $1.00. This illustrates where a cent can arise; it does not prescribe a tax rate or the correct rounding treatment for a location.
Ask which calculation the store is intended to use and whether its settings implement that decision. Do not switch rounding modes until one problematic order happens to match. That change can affect other purchases. Equally, do not add a balancing fee to conceal a mismatch the team has not explained.
A coupon can change more than the discount line
WooCommerce’s core coupons reduce product prices before tax is calculated. A merchant checking only the discount line can therefore mistake a correct change in the final total for an error. This does not establish how a separate store credit, gift certificate or promotion extension behaves.
In a simplified hypothetical order, $75 of products taxed at 8% totals $81 before shipping. A $15 discount against those products leaves $60, with $4.80 tax, for $64.80. The payable amount falls by $16.20 because the tax also falls. These figures illustrate the stated calculation assumptions, not a rule for every coupon or jurisdiction.
Changing the address or delivery option adds another point where the intended purchase can change. Preserve the old and new shipping charge, applicable tax and coupon result. Confirm that the update completed. The Checkout block’s Store API returns current cart data, including coupons and shipping information; the web team should inspect the appropriate update for the checkout actually installed.
If a promotion no longer applies, explain that before payment and show the revised purchase. Silently removing a discount merely to make an old payment amount agree would change the customer’s bargain.
The payment must represent the current purchase
When a supported cart change affects the total, use the installed integration’s supported way to refresh or replace the payment setup. Do not assume every gateway accepts an amount change in an existing payment session, or that visible card fields prove they describe the latest order.
Before submission, the customer should be able to review the final amount and currency. After submission, an interrupted refresh is not proof that no payment occurred. Resolve the original attempt before inviting another. Our invalid amount article explains the distinction between repairing a request and establishing its outcome.
Accept the repair against the sequence that exposed it: the coupon, address or shipping change, followed by the supported payment result. Compare the final order with the gateway record. An ordinary unchanged basket is a useful comparison, but it cannot establish that recalculation now produces the purchase the merchant promised.