Home / Companies / Stripe / Blog / Post Details
Content Deep Dive

Stripe logo

Blog post from Stripe

Post Details
Company
Date Published
Author
Erich Rentz and Danko Komlen
Word Count
1,759
Language
English
Hacker News Points
-
Summary

Stripe has developed a sophisticated jurisdiction resolution system (JRS) to accurately and swiftly calculate sales tax for transactions in over 100 countries, with a particular focus on the complex tax landscape of the United States. The system addresses the challenge of determining applicable taxes from more than 16,000 possible combinations by using a patent-pending approach that divides the US into non-overlapping regions called Stripe places of taxation (SPOTs). These regions are defined offline using a geographic information system (GIS) that centralizes and standardizes jurisdiction data, which is then stored to be used during real-time transactions. By using bounding boxes to simplify the complex polygons of SPOTs, Stripe ensures minimal latency during tax calculations, even as jurisdictional boundaries frequently change. The JRS effectively balances accuracy and speed by combining offline SPOT creation with online processing, allowing for precise updates and fast tax computations. This approach not only overcomes the limitations of using postal addresses for tax determination but also addresses the challenges posed by varying quality in public geospatial data and intricate jurisdictional boundaries. Stripe continues to refine this system, addressing memory management concerns while maintaining its commitment to providing reliable and timely sales tax solutions.