All articles

When the payment problem is the amount your store sent

An invalid amount can be a checkout calculation problem or a transaction limit. Check the request before asking the customer to change cards.

In this article

The checkout tells a customer to try another card. They do. The second attempt fails too.

Later, the web team finds that the payment request contained an amount the provider could not accept. The customer changed cards to solve a problem in the store’s calculation. Nothing they typed could have repaired it.

“Invalid amount” deserves investigation before it becomes advice to the buyer. It can describe a request defect or an applicable transaction limit. The useful question is where the amount became unacceptable and who can change that condition.

The price on the screen is not the whole payment request

A total can look perfectly reasonable in the cart while reaching the gateway in the wrong format. The web team needs to compare the amount the customer accepted, the server’s order calculation and the actual request, including its currency. Looking at the checkout screenshot alone misses the point where the mistake happened.

Different payment APIs express money differently. Stripe documents amounts in the currency’s minor unit, while Cybersource’s total amount field accepts a decimal amount string under its documented rules. For a hypothetical USD 39.95 purchase, copying the amount convention from one integration into another can change what the number means. A working example from another provider is not proof that this store sends the right amount.

The distinction also matters when a store changes currencies. The permitted precision and limits belong to the specific operation and currency. Your team should not assume that every currency uses the same decimal places, or that a provider will round an excessive number of digits the way the storefront does.

The calculation itself needs review before the request is formatted. Binary floating point represents many decimal fractions approximately. Small differences can enter a calculation even when its displayed inputs look exact. Sending the final value as a decimal string does not repair an amount already calculated incorrectly.

Have the developer choose arithmetic suited to the store’s required precision and document where rounding belongs. Numerical representation and the agreed rounding policy are separate decisions: exact decimal arithmetic alone cannot decide whether tax is rounded per item or across an order. Test fractional discounts, quantities and tax calculations against expected totals, then verify the value actually sent. Formatting the screen to two places is not sufficient evidence.

These are implementation questions with a customer consequence. A payment can fail, or a badly translated amount can describe a different purchase. Have the developer establish the recorded outcome before inviting another attempt. If a request may already have been processed, use the original payment recovery process rather than treating the formatting investigation as proof that nothing happened.

Correct the order logic without changing the bargain

Amount defects often become visible at the edges of a normal purchase: a discount consumes the remaining total, a delivery upgrade arrives after the payment session was created, or a tax adjustment changes a value in only one part of the store. Reproduce the actual sequence. A successful full-price test order does not exercise those conditions.

Keep one authoritative order calculation and make the payment instruction agree with it. The repair must still honor the amount and currency the customer approved. Quietly removing a discount, adding a small charge or changing the currency to make the request pass would solve a software complaint by creating a different customer complaint.

A zero balance is its own business case. Completing an order paid by an existing credit is not the same operation as verifying a card for later use. Providers have separate rules for supported zero amount authorizations. Decide what this order needs before using one operation as a substitute for another.

Some limits remain even when the calculation is correct. Cybersource documents processor-specific amount and field restrictions. Stripe’s invalid-amount guidance also distinguishes an invalid value from an amount beyond what is allowed. Read the actual response and account guidance before deciding whether the web team, payment provider or customer’s issuer owns the next step.

If the request is valid and the issuer’s guidance requires customer action, explain that confirmed next step. Do not divide the purchase into smaller attempts merely to evade a restriction. A different commercial arrangement needs its own agreement and supported payment treatment.

Bring the customer back to the purchase they made

Support should be able to say whether the business found an order calculation problem, is still investigating an uncertain payment, or needs a permitted action from the customer. Those messages ask for different things. “Use another card” should not be the default for all three.

For a Trolleys merchant, give the web team and integration support the store, order, attempted amount and currency, transaction reference and error details that are safe to share. Keep payment credentials out of the handoff. The merchant account and gateway records establish what happened; the web team repairs how the order reached that point.

Then test the purchase that failed, including the discount, quantity change or delivery choice that exposed it. Check the provider record against the customer’s final total. The repair is complete when the correct purchase can finish, not simply when the error message has disappeared.