-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: offline billing accounts in org
- Offline billing accounts are not registered in billing provider like Stripe by default. - Only online b/a can use CheckoutAPI so when requesting to create new Checkout, it will automatically try to register the billing account to provider if it is offline - DelegatedCheckout with virtual credits can be used with offline customers - Offline customers will not interact with billing provider at all and can't support subscriptions as well - A offline customer can be migrated to online using RegisterBillingAccount API - raystack/proton#360 - A change in frontier env/yaml configs are introduced to handle offline accounts better ```yaml billing: # default currency to be used for billing if not provided by the user # e.g. usd, inr, eur default_currency: "inr" # billing customer account configuration customer: # automatically create a default customer account when an org is created auto_create_with_org: true # name of the plan that should be used subscribed automatically when the org is created # it also automatically creates an empty billing account under the org default_plan: "" # default offline status for the customer account, if true the customer account # will not be registered in billing provider default_offline: false # free credits to be added to the customer account when created as a part of the org onboard_credits_with_org: 0 ``` Signed-off-by: Kush Sharma <thekushsharma@gmail.com>
- Loading branch information
1 parent
9c159db
commit 54b62aa
Showing
31 changed files
with
15,816 additions
and
12,241 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
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
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
Oops, something went wrong.