#kekko7072-metered-billing
1 messages ยท Page 1 of 1 (latest)
Hi there ๐ we actually have support for subscriptions with metered billing:
https://stripe.com/docs/billing/prices-guide#metered-billin
i read but i didnt understand
i should create a product? It's no clear to me. How can i bill monthly automatically but with different price?
can you explain me the configuration better? Maybe linking videos i use Flutter SDK for front end and Firebase functions as backend +
firestore for storing
We likely don't have videos for your exact environment, but the outline of the steps are:
- Create a Product and Price (this step in the doc, which contains code snippets: https://stripe.com/docs/billing/prices-guide#creating-metered-subscription). This is a one-time step and only needs to be completed once for each product.
- When creating the subscription, pass in the Price ID from Step 1.
- Follow the steps in this section to create usage records which indicate how much a product has been used. https://stripe.com/docs/billing/prices-guide#reporting-usage
- At the beginning of the next billing period (unless configured otherwise with thresholds) we will bill based on the provided usage records.
clear thankyou so much
but how i can add the subscription to the user?
i have the customer id is it usefull? how can i can implement the subscription in my code?
customer is a required parameter when creating a subscription, and it does expect the customer ID to be provided:
https://stripe.com/docs/api/subscriptions/create
https://stripe.com/docs/billing/subscriptions/build-subscription
grat thankyou so much