Dev Tools · 1h ago
Stripe webhook bug: Hardcoded Japanese emails fixed with currency-based language inference
A SaaS company discovered its Stripe webhook had been sending Japanese-language receipts and failure notices to English-speaking users for months. The fix uses the currency field in Stripe events to infer the user's language, avoiding extra API calls or database migrations. The approach maps USD to English and all other currencies to Japanese, with plans to expand as new markets open.
Meridian48 take
Clever hack, but fragile — a Japanese user paying in USD gets English emails, and the binary mapping won't scale to multilingual markets without a more robust solution.
Read the full reporting
Multilingual emails from a Stripe webhook — inferring language from currency →
DEV Community
stripewebhook