mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 04:55:42 +09:00
feat(premium): native Nordic prices and subscribing during grace (#3274)
This commit is contained in:
1 parent
0ef1cd14c3
commit
7a4aa42d4b
84 files changed
+7720
-4589
No files matched your search
@@ -48,6 +48,8 @@ Every route except [get price IDs](#get-price-ids) is user-only. A [self-hosted
|
||||
|
||||
Every amount field is in the minor unit of the currency field its description names, and two amounts in one object can have different currencies.
|
||||
|
||||
ISK has no minor unit in ISO 4217, but its amounts still use two decimals, so divide them by 100. ISK 590 is `59000`.
|
||||
|
||||
A hosted deployment uses the currencies below. A self-hosted deployment whose operator sets its own prices uses the three-letter ISO 4217 codes the operator configured.
|
||||
|
||||
| Value | Description |
|
||||
@@ -57,6 +59,7 @@ A hosted deployment uses the currencies below. A self-hosted deployment whose op
|
||||
| BRL | Brazilian real |
|
||||
| DKK | Danish krone |
|
||||
| INR | Indian rupee |
|
||||
| ISK | Icelandic krona |
|
||||
| NOK | Norwegian krone |
|
||||
| PLN | Polish zloty |
|
||||
| SEK | Swedish krona |
|
||||
|
||||
@@ -984,10 +984,12 @@ Default empty. The webhook signing secret. Compose forwards it from `.env`.
|
||||
|
||||
Default `{}`. Every price ID at once. JSON object. Compose forwards it from `.env`.
|
||||
|
||||
Individual price variables also exist, one per product and currency: `FLUXER_STRIPE_PRICE_MONTHLY_`, `FLUXER_STRIPE_PRICE_YEARLY_`, `FLUXER_STRIPE_PRICE_GIFT_1_MONTH_` and `FLUXER_STRIPE_PRICE_GIFT_1_YEAR_` in USD, EUR, BRL, DKK, INR, NOK, PLN, SEK, and TRY. Each overrides the matching price in this object. Compose does not forward them, so a self-hosted instance sets prices with this variable or in the admin dashboard.
|
||||
Individual price variables also exist, one per product and currency: `FLUXER_STRIPE_PRICE_MONTHLY_`, `FLUXER_STRIPE_PRICE_YEARLY_`, `FLUXER_STRIPE_PRICE_GIFT_1_MONTH_` and `FLUXER_STRIPE_PRICE_GIFT_1_YEAR_` in USD, EUR, BRL, DKK, INR, ISK, NOK, PLN, SEK, and TRY. Each overrides the matching price in this object. Compose does not forward them, so a self-hosted instance sets prices with this variable or in the admin dashboard.
|
||||
|
||||
Prices saved in the dashboard replace this catalogue entirely. They take any three-letter currency code. A buyer gets the currency mapped to their country, then the default currency, then the first configured one. Fluxer's country checks for localised currencies apply only to prices set by these variables.
|
||||
|
||||
A self-hosted instance never sets Stripe Adaptive Pricing on its Checkout Sessions, so the setting in the Stripe Dashboard applies. The hosted service turns it off for SEK, NOK, DKK and ISK sessions so buyers pay the native price.
|
||||
|
||||
#### `FLUXER_STRIPE_LEGACY_PRICES`
|
||||
|
||||
Default `{}`. Retired price IDs, keyed by the same slot names `FLUXER_STRIPE_PRICES` uses, each mapped to a list: `{"monthly_brl": ["price_..."]}`. JSON object. Compose forwards it from `.env`. Existing subscriptions on these prices keep renewing. The localised checkout catalogue uses `FLUXER_STRIPE_PRICES` alone. Legacy prices saved in the dashboard replace this variable, and there the currency in a slot name is upper case, such as `monthly_GBP`.
|
||||
|
||||
Reference in new issue
Block a user