#will_subscription-upgrade
1 messages · Page 1 of 1 (latest)
👋 Welcome to your new thread!
⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1281357234466586696
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Ideally I'd like to be able to update the subscription items and redirect the user to a payment link
will_subscription-upgrade
@ruby elbow there are many ways to do this so it depends really what you are after and what's the blocker. It's definitely not the normal way to cancel the Subscription and create a new one through Checkout
You already have a Subscription so you can upgrade it directly in the API to transition to a different Price, see https://docs.stripe.com/billing/subscriptions/upgrade-downgrade as a good start
Yeah I've seen that, but in my case I've allowed the user to have a free subscription without taking payment details, so the upgrade doesn't process
If you’ve subscribed a customer to a zero-amount price (for example, as a trial), changing the price to a non-zero amount generates an invoice and resets the billing period to the date of the change.```
What is the best way of getting them to the checkout page to enter card details?
That's kind of impossible. You can't use Checkout at all for this anymore. There are other ways but it will require implementing a lot of the logic yourself. For example you'd use PaymentElement to collect their payment method details client-side on your website
Yeah that was my thought, I'd have to handle a lot of it myself.
I think it might be easiest to create a new checkout session, then cancel the existing free subscription in the subscription created webhook
yeah that can be easier. You can also try the CustomerPortal and see if that fits your needs