This repository has been archived by the owner on Jan 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
control: convert single tier to metered+per_unit (#267)
This changes how Tier interprets and converts tiers to Stripe prices. Previously, a single tier in a pricing.json would convert to a metered price with one or two tiers depending on if the tier had an inf limit or not. If it did not have an inf limit, a catch-all was created to satisfy Stripe. This produced awkward invoices. This commit changes Tier to convert a feature that has a single tier without a base price to be a metered+per_unit price in Stripe, which shows up less awkwardly on invoices. This also opens us up to support pricing transforms in Stripe for these types of prices.
- Loading branch information
Showing
3 changed files
with
49 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters