#aiwa_23433
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. 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.
- aiwa_23433, 18 hours ago, 30 messages
Hi
Could you please share the Subscription Id ?
getting same for every subscription....sometime it will call after a long time
It depends.. if the Subscription is scheduled to be canceled in the future (e.g. at the end of the billing cycle) and not immediately, then the event isn't triggered immediately too:
https://stripe.com/docs/billing/subscriptions/cancel#events
we kept 2 days grace period after the payment failure.....and attempted two time and card declined....after all retries we kept the subscription as cancelled...and its cancelled too....but deleted webhook didnt call ?? is there any way to call that immedeiatly ?
Can you share the Subscription Id ?
where the subscription is canceled and there is no event Id
sub_1OOb1KSBMoLjZsnYS7nEJuVZ
Ah this Subscription is using a test Clock
yess...we are using test mode for now
I see, let me check further...
okk...please...we got stuck there...
Yes I'm doing some tests...
I created a similar scenario and I got customer.subscription.deleted event
You need to advance the time clock to a date that there'll be no retries on the subscription
try moving forward the timeclock to 1 week more
can i know when it will trigger ?
how long it would take trigger after the cancellation ?
actually, we need to cancel plan from our website by triggering the customer.subscription.deleted webhook.....so i need to know the time....
You can suspend the service access when you get an invoice.payment_failed event
the delete/cancel event is triggered after failing all payment retries
It depends on how much retries you are configuring your billing
Yes, the issue you are facing is probably related to test clock (limit).
By advancing time you get the webhook event at the end
Do you have a the issue in live mode ?
1 more week i have forwarded....but still not
we cant test this in live mode....we are in the middle of development.... so please provide an accurate answer regarding this
Hi! I'm taking over from my colleague. Please, give me a moment to catch up.
Could you please summarise the latest question for me?
customer.subscription.deleted webhook is not called after the cancellation..... is there any specific reason for that ?
sub_1OOb1KSBMoLjZsnYS7nEJuVZ
I think the issue is related to test clock
You can create and cancel a Subscription.
we want to check that after payment failure.... after all attempts we kept as cancel subscription....... in that case how will test it ?
I have just tried the same on my end and got a customer.subscription.deleted event.
how to deactive the test clock in test mode and make the clock in global time
Test clock is only applied to selected objects. You can just create a Subscription normally.
whenever am creating through api its addded to the subscription ....
It's not added automatically.
Could you please share your code?
It's actually added to the Customer object. So you need to create a new Customer object that's not on Test Clock.
there is no option to remove test clock for already created
No