#geo88
1 messages ยท Page 1 of 1 (latest)
Pricing table doesn't support what you describe currently. You'd need to just have a pricing option at $289 and then downgrade/amend the create Subscription after creation for the next billing period
Oh I see
but would this but possible to setup this downgrade from Stripe or would I need to do an API Call?
You could do it via the Dashboard sure, or via the API
Any idea where I'm supposed to go on the dashboard?
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
do you mean I can setup an "automatically scheduled downgrade" for each new subscription" from this link?
You can schedule the update to happen in the Dashboard, yep
you mean here?
Any subscriptions created via the pricing table would be under the Current tab. You can then update one, and schedule the update in the UI (which will create a schedule under the hood)
I mean, I want it to be done automatically. The website admin should not have to come back to Stripe to set these up.
It needs to be done automatically, like some kind of trigger
Then you'll need to use the API: https://stripe.com/docs/billing/subscriptions/subscription-schedules/use-cases#downgrading-subscriptions
I guess you could listen for checkout.session.completed events (i.e a customer subscribes via the pricing table) and then create the associated schedule for the downgrade as you need
seems to be the best solution ๐
I've already got a webhook for this event. ๐
I just need to add an API Call
Perfect, let me know if I can help. You'll need to pass the sub_xxx from the session when creating the schedule: https://stripe.com/docs/api/subscription_schedules/create#create_subscription_schedule-from_subscription
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
if the user cancels their subscription before the end of the current subscription, the scheduled subscription will be canceled too, I imagine?
Well you'd cancel the schedule at that point. That'd also cancel the actual subscription
ok. Thank you very much ynnoj for your help ๐
you're welcome
I'm gonna setup this API call now. I might need your help again. Hopefully it'll be fine ๐ thanks again
๐ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!