#viktor-Checkout
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
if you want the user to manage their subscription/payment methods you could always use the Customer Billing Portal https://stripe.com/docs/billing/subscriptions/integrating-customer-portal
I think I am using that already
If on my app I have 3 plans available,
beginner, medium, pro (for examples)
Right now I direct my users straight to the Portal so they can do everything there
But if I send them straight to the portal when they have 0 subscriptions, they don't see any plans
def billing_portal bp = Stripe::BillingPortal::Session.create({ customer: current_user.company.stripe_customer_id, return_url: subscriptions_url }) redirect_to bp.url end
If a new user goes gets redirected, he does not see any plans
So I first need to send them to buy their first subscription with
Stripe::Checkout::Session.create
After that if they go to the Billing Portal, they can Update / Cancel
This is what I see if I go straight to the Billing Portal without any Subscriptions
sorry I'm reading through, please give me a couple of minutes to catch up
No stress, thanks!
Adding screenshots to help explain
This is after the user has purchased their first Subscription
Then we can finally see the Plan in the Billing Portal, and the Update plan / Cancel plan buttons
And in my app, I don't know if it's possible to help the user to go straight to the 'Change to this plan'
Hey there, stepping in for my colleague. Catching up!
All the buttons on my last screenshot do the same, they send the user to the Billing Portal
Because I don't know if it's possible to send them directly to the Billing Portal with 'Change to this plan'
Using Stripe Checkout, is it possible to link directly to another plan, so the user can upgrade f.x. from 'beginner' to 'pro' subscription?
This is not currently possible with Checkout, no. This function is served by the Customer Portal
Because I don't know if it's possible to send them directly to the Billing Portal with 'Change to this plan'
Not currently, but we're working on 'deeplinking' like this.
I know it is possible if I send the user first directly to the billing portal, but I would like to show them all the available plans in my app, and send them directly to their desired plan with a button 'Change to this plan
You mean to subscribe in the Customer Portal?
Ok thanks for the answer, then I have the question, why is the customer portal empty in my first screenshot?
Think of Checkout as the means to create a new subscription and then Customer Portal to manage that subscription subsequently
Is it possible to show all available plans? If the user has 0 plans
I think there's some crossed terminology here.
You say 'show all available plans', I assume you mean Price objects people can subscribe to?
If the user has 0 plans
Plans = subscriptions?
Yes sorry!
Got it! Just so we're on same page
Is it possible to show all available plans? If the user has 0 plans
No, that's not possible
Hehe yes.. So if a new user comes in to my app and I send him directly to the Portal, it is empty by design?
I guess in this instance you need some logic to determine whether your user has an existing subscription(s) and action accordingly
Yep, it can't facilitate creating a new subscription
Ah got it
See ๐
Yes perfect explanation ๐
Just took a lot of time to get to this conclusion, been using Stripe since 2018 I think!
Does that clear things up?
Yes, loving the checkout so far, and been watching a lot of videos by C.J.Avila on youtube and reading up
But I think it might be nice to be able to send the user directly to the Portal, and he would see all the available plans there.
The I would not have to create all our plans in our app and manage this logic
Because I think this is something most SaaS have.. maybe 1-4 plans
This might be of interest to you: https://stripe.com/docs/payments/checkout/pricing-table
Wow super!
Let me know if you have any further Qs