#harry_best-practices
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/1351865473716850790
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- harry_best-practices, 8 minutes ago, 42 messages
- harry_api, 10 hours ago, 61 messages
When a customer purchases a Device Type 1 License, we create a subscription and add that product's price_id to it. If they have multiple licenses (e.g., 3 devices), they can select which specific device to remove in our system. When that happens, we update the quantity of the corresponding subscription item in Stripe (subtracting 1).
Our question is: What should we do when all subscription items (i.e., all device licenses) are removed?
Should we cancel the entire subscription when the last item is removed?
What if the customer intends to remove all devices but then purchase Online Ordering afterward? If the subscription is canceled when all devices are removed, they would need to start a new subscription just to add Online Ordering.
Is there a recommended way to handle this scenario?
What is 'Online Ordering'? Is it recurring in nature?
You can't have a subscription without any active items, so if they remove all their ''devices' it makes sense to cancel/delete. Then you can start another subscription if needed down the line
Sorry, didnt get a notification for this.
Yes all packages are a monthly subscription
What would happen if I left the subscription open with no items against it?
As I am thinking I just have a button for them to cancel/end their subscription, rather than doing it automatically if they remove the last item in their subscription
What would happen if I left the subscription open with no items against it?
I don't believe that's possible
Oh interestring
so imagine a subscription manage page that lists all our products, they can add or remove etc
say they start with 3 devices
and want to remove all devices and just pay for online ordering
if they remove all devices first, I wouild be forced to cancel their subscription, then create a new one when they click add to online ordering?
hey os4m37 ๐
Hey! Taking over for my colleague. Let me catch up.
Yes, obviously you can mask that from the the end user by reusing saved payment info etc
could I reopen the same subscription?
No, canceled is a terminal state
It provides some quick actions to do on the Subscription from Dashboard
I clicked dont cancel at it stopped the subscription from being cancelled?
Maybe I'm not sure honestly, this channel is for technical integration only. We don't know much about Stripe Dashboard, I invite you to reach out to Stripe Support in order to understand what does that quick action do (support.stripe.com/contact) but agree with my colleague said previously, canceled is a terminal state for subscription :
https://docs.stripe.com/billing/subscriptions/overview#subscription-lifecycle:~:text=The subscription was canceled. During cancellation%2C automatic collection for all unpaid invoices is disabled (auto_advance%3Dfalse). This is a terminal state that canโt be updated.
thats strange then, but only asked as it was said its a terminal state (assuming it cannt be changed again) but then it can be changed.
so what would be the best practise way of handling subscriptions in my sceanrio? Imagine a screen where you can add or remove products to a subscription. if they remove all their devices, on the last device removal because it is the last item I would have to cancel the subscription right? But what if they wanted to add online ordering subscription straight away?
thats strange then, but only asked as it was said its a terminal state (assuming it cannt be changed again) but then it can be changed.
Can you share a Subscription Id that it was canceled and then changed ?
I would have to cancel the subscription right?
Yes
But what if they wanted to add online ordering subscription straight away?
You create a new One
one moment will cancel one and then uncancel it
sub_1R4KcxJ6I7CpoajDc0YGU3OT
you can see in the events it says
Customer cus_RyHBpHEe54nI2T's subscription has been set to cancel at the end of the billing period
but the subscription is now no longer cancelled
The Subscription isn't canceled yet, it will be canceled at the end of the billing period.