Repository navigation
Plan picker: prices in the visitor's currency, no VAT outside the EU - #1116
Merged
Merged
Conversation
Stripe Checkout charges visitors outside the euro area in their own currency (Adaptive Pricing), and only EU buyers pay VAT. The plan picker on /start-trial and the licence wall showed euros with "VAT included" to everyone, the same as the pricing page did until website #397/#398. The app now asks anythingmcp.com/api/price-estimate from the visitor's browser (Cloud only, so Cloudflare sees the visitor's country) and shows "≈ $22.15/month" with "19 €/month exactly" under it, "Prices in EUR, paid in USD at checkout.", and drops "VAT included" outside the EU. Euro visitors, self-hosted instances and an unreachable site keep euros.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Matches the marketing site's pricing page (website #397 / #398).
Stripe Checkout already charges visitors outside the euro area in their own currency (Adaptive Pricing), and only EU buyers pay VAT (our only Stripe Tax registration is DE). The plan picker on
/start-trialand on the licence wall showed euros and "VAT included" to everyone.What changes (Cloud only)
lib/local-currency.ts:useLocalPricingasks${MARKETING_URL}/api/price-estimateonce per page load, from the visitor's browser, so Cloudflare sees the visitor's country. The site allows this origin via CORS.≈ $22.15/monthwith19 €/month exactlyunder them./start-trial: the "billed today" lines show≈ $22.15/month (19 €/month).Tests
card-trial.spec.ts: 25 passed, including 5 new:billing-awarenessandneutral-signup-and-billingstill pass.tscclean, eslint 0 errors.Depends on website #398 (CORS for the Cloud origin and the
vatfield) being live first.