Testing 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)
- 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-jsrepository - In
polar-js/.speakeasy/workflow.yamlchangehttps://api.polar.sh/openapi.jsontohttp://127.0.1:8000/openapi.json - Instal the Speakeasy CLI: https://www.speakeasy.com/docs/speakeasy-reference/cli/getting-started
- Run
speakeasy run --skip-versioningto generate the SDK locally - In the main polar repo, go to
clients/apps/weband install the local dependency withpnpme.g.pnpm add "/Users/<user>/Development/polar-js"(or whatever your local path to thepolar-jsrepository is). - Do the same for
clients/packages/checkout

