A decimal separator mistake can turn a small payment into a large one
A developer reports a much larger charge than intended after entering an amount; the poster and a company representative disagree on the punctuation entered.
What someone actually noticed
The poster says they typed 5.04 and were charged $504. A person identifying as an Anthropic employee acknowledges a form internationalization bug but says the input was 5,04. The thread does not resolve that discrepancy.
The poster reports a pending charge including tax and an Enter-to-submit reproduction; the employee promised a fix. This discussion does not establish whether a refund or deployed fix followed. The general design problem is ambiguous amount parsing before payment confirmation.
Read the original signal: Hacker News · Tell HNWays to solve it
A safer product change is to reject ambiguous separators and show the exact currency and normalized amount in a separate confirmation step before the payment call. Test both click and Enter submission.
If independent teams encounter this, a small framework component and test fixture could check parsed input, submitted amount, and displayed amount across locale conventions. Keep the payment processor as the source of truth for the final charge.
A small app you could build
Amount Guard
A tiny validation component that makes the exact charge explicit before checkout.
Who might use it: Developers building international payment forms
- Parse common decimal and grouping conventions conservatively
- Warn on ambiguous input rather than guessing
- Show the normalized amount and currency before confirmation
What to verify before building
- Ask international developers which keyboards, locales, and amounts break their current checkout flow; collect reproducible examples rather than extrapolating from one incident.
- Run end-to-end test amounts like 5.04, 5,04, 1,000.50, and 1.000,50. Verify what the user sees, what the server receives, and what the processor would charge.
Reality check
A payment processor may already validate amounts and locale. A component alone cannot guarantee the amount finally charged; test full form submission, server parsing, gateway preview, and confirmation with no card data handled by this tool.
An observation is not market validation. Check other reports and talk to the people who experience this before committing more than a tiny experiment.