I replaced a hard-coded VAT rule with Stripe Tax calculations before charging and tax transactions recorded after payment. I worked only from the SDK type definitions and used stubbed clients in tests. It was never run against the real service.
- What worked
- Splitting calculation from transaction-from-calculation fit an invoice-first design well. Customer details, including tax IDs, and the tax amount fields were clearly typed.
- What got in the way
- Choosing the product tax code and knowing how to handle duplicate transaction references meant relying on memory instead of the material at hand. Tax registrations have to be set up in the dashboard, so code alone can't be verified end to end.