Skip to main contentTesting taxes locally
To test tax calculation (Stripe-based):
- Go to your Stripe Sandbox and in there go to Tax > Registrations (https://dashboard.stripe.com/test/tax/registrations).
- Create a registration in Ireland
- First select the “I’ve already registered” option
- Then the “Non-Union One-Stop Shop (OSS)” option – this matches our production setup.
- Select “Immediately” (on when to start collecting)
- Then click “Close” (no need to set up filing)
You’ll now see VAT applied to EU countries!
- e.g. Ireland itself will have 23%
- Denmark and Sweden have 25%
- Greece has 24%
- Cyprus has 19%
Speakeasy: How do I run with a local version of the API?
- Clone the
polar-js
repository
- In
polar-js/.speakeasy/workflow.yaml
change https://api.polar.sh/openapi.json
to http://127.0.1:8000/openapi.json
- Instal the Speakeasy CLI: https://www.speakeasy.com/docs/speakeasy-reference/cli/getting-started
- Run
speakeasy run --skip-versioning
to generate the SDK locally
- In the main polar repo, go to
clients/apps/web
and install the local dependency with pnpm
e.g. pnpm add "/Users/<user>/Development/polar-js"
(or whatever your local path to the polar-js
repository is).
- Do the same for
clients/packages/checkout