Hey
This is my first time with Bubble.is and so far I really love what I see. I build a lot of prototypes and will continue to do so, Bubble looks to become my go to tool after this experience.
I am having some issues with understanding how to use the plugin stripe.js. My main question is “How do I subscribe a customer to a Stripe plan, from my Bubble application?”
What I am trying to accomplish:
I work with a fintech company and for a new pilot project we want to sell one of our products by splitting up the cost in 4 instalments.
Payment logic
We want to split the cost of our product into 4. Lets say our product costs $100.
- $25 is charged immediately
- $25 is charged 1 month from now
- $25 is charged 2 months from now
- $25 is charged 3 months from now
What I have done is created the following workflow:
- Stripe.js - Customer - Create
- Sign the user up
- Convert card into Stripetoken A
- Charge the current user
- Create a subscription item
- Subscribe the user to plan
What happens:
User is charged - Great!
Then I get this error message: “The user isn’t subscribed to any plan, you can’t apply a coupon”
I haven’t touched any setting regarding coupons, so assume this error message is not 100% accurate. How do I subscribe this customer to a plan?
FYI regarding cancelling users to subscription plan after the 4th payment, we will do this with a script that calls Stripe API outside of Bubble.
Any help is deeply appreciated! Thanks