#alok - subscription

1 messages · Page 1 of 1 (latest)

coarse quarry
#

hi there, can you share more about what you're updating about/for a subscription tier?

proud lantern
#

We have a free plan, non-metered and then a metered growth plan with graduated tiers.

#

Basically, I want to switch between those two plans and not have both subscriptions ongoing at the same time. Especially if we add a third tier e.g. enterprise.

coarse quarry
#

switch between non-metered and a metered growth plan with graduated tiers?

proud lantern
#

yes, switch from a non-metered free plan, to a metered growth plan with graduated tiers

coarse quarry
#

i think it's really up to you whether you want to define another Product/Price for it.

Theoretically, if it's still the same Product, but you are just offering different pricing for it then i would say just create a new Price.

The more important point here is that you can't only rely on the Checkout Session to do what you want.

#

A Checkout Session would only allow the customer to create a new Subscription

proud lantern
#

Even if it's just a new price within the same product?

coarse quarry
#

yep, even if it's just a new price within the same product

proud lantern
#

So I would have to use a webhook to subsequently cancel the old subscription?

coarse quarry
#

yes, that would be what i would do

proud lantern
#

In the past, I had used elements and the APIs to retrieve the existing subscription and update it with a different plan id (I guess price id would be the recommended way now). Would you suggest sticking with this approach as it reduces the reliance on messaging?

coarse quarry
#

i think updating the subscription with a different plan with a new Price would be more intuitive.

proud lantern
#

Noted, thanks Alex.

#

Sorry, a related question - I'm going to use the customer billing portal to manage payment info and view historical invoices. I can't see the payment methods in the test portal. Is this expected?

#

I can see the test card in the checkout sessions

coarse quarry
#

do you have a subscription on the customer already for whom you're creating the portal session for?

proud lantern
#

yes

#

In the stripe test dashboard the payment method does show up

#

along with the subscriptions

coarse quarry
#

can you share the request id, i'll take a look at that

proud lantern
#

bps_1Kl72xCSF9QEDiwpvRrFUOM3

coarse quarry