Bubble and Stripe - Billing

Hello everyone, I’m reaching out for help with my development project. I’ve connected my Stripe and Bubble accounts using an API Connector.

My desired billing model is as follows: I have two subscriptions: one with a monthly commitment and one with an annual commitment. The price is comprised of a fixed portion and a variable portion. Therefore, I need to wait until the end of the month to see the amount to be debited for the variable portion.

I would like the user, upon subscribing (via a button), to be committed for the desired duration and only be billed on the monthly anniversary date of their subscription (even the annual subscription will be billed monthly).

I don’t want them to receive an invoice or anything else before the end of that anniversary month.

In Bubble, I used a “Create Checkout Session” with a subscription model. The problem is that the customer immediately receives an invoice, which is not what I want. Shouldn’t we use a setup mode followed by an immediate subscription with billing on a specific date?

I’d appreciate your opinion on this.

Thank you very much.

can you explain it little bit more,

and you should charge user, if you wait till the end of the subscription periods, there are some edge case:

like what if there card is expired 2 days before that day
what if the disable there card

and other, and there are proration , like they are on monthly sub but after 10 days they wanted to upgrade to yearly. we can use proration, but only if we charged use befroe that periods

Thank you for your quick response.

Here’s a more detailed explanation:
I have a button for each subscription. In Stripe, I have two different products.
Each product has a fixed price and a variable price based on the number of employees that user has created. At the end of the month, I have a workflow that calculates the number of employees and sends this information to Stripe. I’ve obviously ensured that a created employee remains active until the billing period.

I’ve also set up the APIs and backend workflows for plan updates and cancellations.
I’ve managed the trial portion outside of Stripe.

I was wondering if the solution I implemented, which seems to be working (subscription model), was the right one, or if I needed to change my approach.

Upon further detailing my problem, I realize I have two alternatives, but I’m not sure if they’re realistic:

  • Bill the fixed amount immediately and bill the variable amount at the end of the month.

  • Bill everything at the end of the month.

Would you like to see anything else, or do you need any further clarification?

Here is my workflow for updating the variable portion.

and me checkout session

Your approach will work, only thing that has to ensure the calculation of the amount before the collection.

You can also set up a “metered billing” directly in the stripe to calculate these variations, perhaps it is more effective, but if the stripe calculates wrong it will be difficult to correct.

Could you help me with this? Do I need to start with setup mode? What actions should I perform in order?

I was thinking of doing it like this:

→ Checkout without invoicing thanks to the subscription setup
→ Card pre-authorization
→ Subscription starts on the anniversary date with the creation of a new subscription
→ Automatic invoicing based on the number of collaborators

Would you proceed in the same way, or is there a better way?

No one can help me ?