#bill92_webhooks

1 messages · Page 1 of 1 (latest)

inland harborBOT
#

👋 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/1307094840542236774

📝 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.

quick musk
#

Hello, apologies for the dealy. That event exists because our checkout sessions give users 24 hours to pay before automatically cancelling themselves and becoming unpayable. It is helpful for users that want to check if they should create a new checkout session or can just serve the link to the old one again. You will only get that event when there is no payment in the first place, so there won't be a subscription or invoice to cancel on the customer when you do get it.

#

Is that helpful in your situation, or are you more looking in to how to do something with handling subscription cancellations for subscriptions that already exist?

umbral swan
#

I got an expired subscription

can I share an image?

quick musk
#

You can, but the ID of the subscription is usually more helpful (sub_123). Do you have that ID for this subscription?

umbral swan
#

sub_1QLWntH31YJndMKO7iGkJKwu

#

its all on test mode.. ( of course )

quick musk
#

Gotcha, and what are you trying to understand about that expired subscription?

umbral swan
#

So for my SaaS I only give access to the product when the subscription status is

  • active
  • trialing
  • past_due (I show a warning that the user will soon loose access)

So If a user leaves a subscription unpaid for some time, ( he wont have access to the product) I would like to cancel it and create a new one, I want to make sure that the previous subscriptions are canceled, thus no future invoices will be generated

#

does that makes sense?

quick musk
#

Under "Manage failed payments for subscriptions" for "Subscription status" you can choose "Cancel subscription"

#

And then you can listen for customer.subscription.deleted events and/or check that subscriptions have a canceled status wherever you are currently checking the status in your logic.

umbral swan
#

let me take a look

#

Is it considered a “best practice”? Having multiple subscriptions? (Even though only one is active)

#

I just want to make sure my clients are not charged when they not used the product

quick musk
#

Whether or not a customer can have multiple subscriptions at one time or not is up to you. I've seen users who allow that and users who restrict it, either way can be viable.

umbral swan
#

ah, nice

#

the past_due status is when a subscription enters a Retry Schedule, right?

umbral swan
#

Great, so it makes sense to give a grace period on past_due

#

Thanks for all the help, have a wonderful day