Implementing a Rails Stripe subscription when there are no obvious plans
I am trying to use Stripe on an Airbnb clone as part of a tutorial excersise.
The current subscription requires a plan to be selected or created, this is normal for standard SaaS billing where there are certain plans.
In my use case, I want the room owner to be able to set a price, I then take that price and apply the markup, and then the Visitor can book the room for a monthly monthly fee.
I can't seem to find a solution for this in the Stack or Stripe API docs - I'm trying to learn, so please be kind :)
source to share
Personally, I won't create dynamic plans for every scenario, as you will have an unwavering number of plans. Instead, you can create a plan for $ 1 and then use the parameter quantity
to create a plan in any amount (well, any multiple of $ 1).
https://support.stripe.com/questions/how-can-i-create-plans-that-dont-have-a-fixed-price
Best, Larry
PS I'm working on support on Stripe.
source to share