#ashour_code
1 messages ยท Page 1 of 1 (latest)
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.
- ashour_docs, 33 minutes ago, 30 messages
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1252619446078406668
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
Hey there this handler appears to only be looking at customer.subscription.deleted events which only applies after the subscription is cancelled
What are your configured rules for subscriptin cancellation?
I will provide you with picture now
Will that work on production automatic? Because when I used simulation the subscribtion became only past due not cancelled
Yes, that should eventually cancel subscriptions after two weeks / 8 payments. I'd suggest reaching out to our support team if you observe different behaviour: https://support.stripe.com/contact
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Thank you I have 1 more question I noticed something when subscribtion cancelled and it has some old past due invoices the user can still pay them and the subscribtion so I need to handle that manually and fetch all invoices turn them to void or not
I have to start new thread?
No i can answer, that's up to you
Depending on your business you might still expect/try to collect on these, perhaps not
Please answer me if its possible
So you can do what is needed but my default they will be open and payable
Is what possible?
I mean if I am sending these invoices by emails and customer didnt pay in specific period and his subscribtion is cancelled and then he decided to open the invoice and pay that will cause a problem because the subscribtion cancelled already
So I saw in stripe doc that i should do it manually but i want to know if i understood the case right or I misunderstood it
It won't cause issues, its normal to collect some back payments
How it wont cause issue the customer will use my service for just the window of retries(say 14 days) and if he didnt pay in it the subscribtion will be cancelled and if he pay the invoice of the (cancelled sub) it wont continue so that will annoy customers because we take money before the service so the payment will be only for this retry window
You got my idea?
No, sorry, I don't understand the situation you are describing
If you're concerned about a customer using a service before paying, you can delay granting them access until payment is completed
But that's in your own application code
The scenario is
customer A: subscribed to my monthly service and paid
1 month later stripe tried to get the money from him by generating invoices but all retries failed because he ignored the invoices after the retry window end say 10 days stripe should cancel the subscribtion automatic right and send me event of subscribtion.deleted and based on that I will in activate the user
What if the user opend the emailed invoice and after the subscribtion cancellation tried to pay the invoice to continue the subscribtion----> what will happen that stripe will take the money but the subscribtion wont be continued because its already cancelled so that will cause a problem with user right?
You got my idea?
Here is someone with same issue as me
Do i need to contact the stripe support team?
Nope, i can help here, once the subscription is cancelled it cannot be uncancelled. You can handle this however you like for that customer, for example:
1/ void the old invoices, as you mentioned
2/ allow payment and track via webhooks, create a new subscription for the customer, perhaps creditting them some time for what they just paid
some business might choose to do nothing, and just colelct the owed backpayment, depends on the model
for example if it was a past invoice for service already delivered, its funds owed, and you maybe outreach to ask them to sign up again, but thats separate from the backpayment
For my case when i cancel directly after short period i think its better to void the invoice
Sure!
You might also want to update the memo/footer with a link or email to contact you if they want to sign up again etc
Glad to help!
Yes whenever the user inactivated i will always forward him to checkout session creation page to start the whole process from beggining
Do u think its good idea?
If you want them to sign up again yea its probably a good idea ๐
Thanks alot I was happy to talk with such a smart human
I am sorry it will be my last quetion what does stripe means by 8 retries that mean 8 different invoices or 8 emails with same invoice and how it count that the retry failed and stripe should try again
Hi there ๐ jumping in as my teammate needs to step away soon. If you're referring to the automatic payment retries for Invoices, that is 8 retries per Invoice. A retry is failed if the attempt to retry the payment still results in a payment failure.
Thank you toby and after the these retries failed the behavior will be auto cancellation based on these settings right?
..
Yes, it's controlled by the setting shown there in your screenshot that is currently set to cancel the subscription.
Thank you
Have a nice day๐