#pickhardt
1 messages · Page 1 of 1 (latest)
I mean if you have a Silver and a Gold plan, and a user upgrades Silver to Gold
Hi, you would not need to cancel the existing subscription and create a new one. You can just update the Subscription, https://stripe.com/docs/billing/subscriptions/upgrade-downgrade. Specifically, you're looking for this, https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#changing .
Oh actually it appears I'd have to cancel and start a new one, cause I have Silver as a product, and Gold as a product
Yeah I was reading that but I'm not sure just updating is really "best," you know? But I just realized I have different products for each one anyway so I think I'd have to cancel. Or alternatively just change so there is only one product
This is just a typical SaaS web app
Are you seeing an error when you're passing a price id from a different product id? What error are you seeing? I was under the impression that should not be a limitation.
I've just implemented "sign up with one subscription" for now but I want to implement "change subscription - upgrade, downgrade, and cancel"
So I am not seeing an error but wouldn't the subscription be for a single product?
Oh you are right, I think you can just update the subscription with the new product+price
So what is the best practice then if someone cancelled and then re signs up a month later? Do you make a new subscription or just update the old cancelled one?
Yeap, on your code, make sure that you replace the existing price as shown here, https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#changing. If you do not specify the following, the new price would just be added and you'd have 2 items.
` 'items' => [
[
'id' => $subscription->items->data[0]->id,
In this case, I'd create a new one as Subscriptions canceled immediately, can’t be reactivated.