Calculating the total cost of a graduated pricing scheme is a PITA if you have to do it more than once - and Stripe’s Price
dashboard unfortunately doesn’t have any tooling to help you. Instead of doing it by hand every time, let’s write a Javascript calculator to do it for us.
Plenty of reasons you’d want to test out potential pricing scenarios before they actually happen - getting quotes for prospective customers, comparison with competitors, checking the impact of discount codes, etc. There’s a reason sites exist like Serverless Cost Calculator for AWS .
Stripe offers a graduated pricing model under Usage-based Billing , e.g.:
Marginal Units | Unit Price ($) | |
---|---|---|
For the first | 5 | $10 |
For the next | 10 | $7 |
For the next | ∞ | $5 |
disclaimer: for now you can only use the hardcoded tiers on this page - but feel free to remix it for your own usecase! Copy the code below and edit pricingTiers
to update the calculator. The function can be copied directly into your browser console or into anywhere that runs Javascript.
Finding a solution to parse unescaped double quotes in my JSON strings, with minimal tears.
Lessons learned from a couple days spent debugging everything BUT the problem.
Most devs don't need a complicated setup for Python, they just need to get running. Leverage a single Docker command to run any version in isolation.
Do you want to be more than a code monkey? Learn to avoid blunders and become a superhero to your team.
It's so easy as a developer to dismiss the idea of learning no-code tools. After all, you know how to code, why spend time learning tools designed for those who can't?