#viktor-Checkout

1 messages ยท Page 1 of 1 (latest)

stable garnet
#

๐Ÿ‘‹ happy to help

urban helm
#

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

stable garnet
#

sorry I'm reading through, please give me a couple of minutes to catch up

urban helm
#

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'

wicked beacon
#

Hey there, stepping in for my colleague. Catching up!

urban helm
#

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'

wicked beacon
#

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?

urban helm
#

Ok thanks for the answer, then I have the question, why is the customer portal empty in my first screenshot?

wicked beacon
#

Think of Checkout as the means to create a new subscription and then Customer Portal to manage that subscription subsequently

urban helm
#

Is it possible to show all available plans? If the user has 0 plans

wicked beacon
#

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?

urban helm
#

Yes sorry!

wicked beacon
#

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

urban helm
#

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?

wicked beacon
#

I guess in this instance you need some logic to determine whether your user has an existing subscription(s) and action accordingly

wicked beacon
urban helm
#

Ah got it

urban helm
#

Yes perfect explanation ๐Ÿ‘

#

Just took a lot of time to get to this conclusion, been using Stripe since 2018 I think!

wicked beacon
#

Does that clear things up?

urban helm
#

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

wicked beacon
urban helm
#

Wow super!

wicked beacon
#

Let me know if you have any further Qs