generated from mintlify/starter
-
Notifications
You must be signed in to change notification settings - Fork 18
add tutorial for flat subscription with usage based billing #102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Muhammad-Owais-Warsi
wants to merge
3
commits into
dodopayments:main
Choose a base branch
from
Muhammad-Owais-Warsi:subscription-with-ubb
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
108 changes: 108 additions & 0 deletions
108
developer-resources/subscription-with-usage-based-billing-tutorial.mdx
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
--- | ||
title: Subscription with Usage Based Billing Tutorial | ||
description: This tutorial demonstrates the integration of products with flat subscription with Usage Based Billing. | ||
icon: "credit-card" | ||
--- | ||
|
||
## Step 1: Creating a Meter | ||
Meters define how your usage events are aggregated and measured for billing purposes. | ||
|
||
Read More: [Meter](https://docs.dodopayments.com/developer-resources/usage-based-billing-guide#creating-a-meter) | ||
|
||
<Frame> | ||
<img src="/images/guides/subscription-with-usage-based-billing/meter.png" alt="Creating a Meter" /> | ||
</Frame> | ||
|
||
|
||
Review your meter details and click on **Create**. | ||
|
||
<Check> | ||
Your meter is sucessfully created and is ready to use. | ||
</Check> | ||
|
||
|
||
|
||
## Step 2: Creating a Product | ||
Create a product for your customers. | ||
|
||
Read More: [Product](https://docs.dodopayments.com/) | ||
|
||
<Steps> | ||
<Step title="Configure Product Details"> | ||
Provide the basic details for your product. | ||
|
||
<Frame> | ||
<img src="/images/guides/subscription-with-usage-based-billing/product-1.png" alt="Creating a Product" /> | ||
</Frame> | ||
</Step> | ||
|
||
<Step title="Configure Product Pricing Details"> | ||
Configure the pricing details for your product. | ||
|
||
<Steps> | ||
|
||
<Step title="Setup Usage Based Billing"> | ||
<Frame> | ||
<img src="/images/guides/subscription-with-usage-based-billing/product-2.png" alt="Creating a Product" /> | ||
</Frame> | ||
|
||
<ParamField body="Pricing Type" required> | ||
Select Usage Based Billing for your product. | ||
</ParamField> | ||
|
||
<ParamField path="Price" required> | ||
Set the price for your product/subscription. | ||
|
||
</ParamField> | ||
|
||
<ParamField path="Discount Applicable"> | ||
Enter any discount that applies to the product or subscription. | ||
|
||
</ParamField> | ||
|
||
<ParamField path="Repeat Payment Every"> | ||
Select the duration after which the subscription renews. | ||
|
||
</ParamField> | ||
|
||
<ParamField path="Subscription Period"> | ||
Enter the deadline for the subscription. | ||
|
||
</ParamField> | ||
</Step> | ||
|
||
<Step> | ||
<Frame> | ||
<img src="/images/guides/subscription-with-usage-based-billing/product-3.png" alt="Creating a Product" /> | ||
</Frame> | ||
|
||
<ParamField body="Associated Meters" required> | ||
Select the required meter for your product. | ||
</ParamField> | ||
|
||
<ParamField body="Price Per Unit" required> | ||
Set up the price per unit for your service. | ||
</ParamField> | ||
|
||
<ParamField body="Free Threshold" required> | ||
Set the free threshold limit. | ||
</ParamField> | ||
|
||
<Note> | ||
Threshold value is the number of units customers can consume at no charge before paid usage calculation starts. | ||
</Note> | ||
</Step> | ||
|
||
<Step title="Create Product"> | ||
Review your product details and click on **Add Product**. | ||
|
||
<Check> | ||
Your product is sucesfully created. | ||
</Check> | ||
</Step> | ||
</Steps> | ||
|
||
</Step> | ||
</Steps> | ||
|
||
This sets up the product with flat subscription using usage based billing feature. |
This file contains hidden or 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.