#aiwa_23433

1 messages · Page 1 of 1 (latest)

distant cosmosBOT
#

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.

thorny prawn
#

Hi
Could you please share the Subscription Id ?

dark ermine
#

getting same for every subscription....sometime it will call after a long time

thorny prawn
dark ermine
#

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 ?

thorny prawn
#

Can you share the Subscription Id ?

#

where the subscription is canceled and there is no event Id

dark ermine
#

sub_1OOb1KSBMoLjZsnYS7nEJuVZ

thorny prawn
#

Ah this Subscription is using a test Clock

dark ermine
#

yess...we are using test mode for now

thorny prawn
#

I see, let me check further...

dark ermine
#

okk...please...we got stuck there...

thorny prawn
#

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

dark ermine
#

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

thorny prawn
#

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

dark ermine
#

configure only one re attempt

#

but still not getting

thorny prawn
#

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 ?

dark ermine
#

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

sullen orchid
#

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?

dark ermine
#

customer.subscription.deleted webhook is not called after the cancellation..... is there any specific reason for that ?
sub_1OOb1KSBMoLjZsnYS7nEJuVZ

sullen orchid
#

I think the issue is related to test clock

dark ermine
#

so how can we test it ?

#

other than live mode

sullen orchid
#

You can create and cancel a Subscription.

dark ermine
#

we want to check that after payment failure.... after all attempts we kept as cancel subscription....... in that case how will test it ?

sullen orchid
#

I have just tried the same on my end and got a customer.subscription.deleted event.

dark ermine
#

how to deactive the test clock in test mode and make the clock in global time

sullen orchid
#

Test clock is only applied to selected objects. You can just create a Subscription normally.

dark ermine
#

whenever am creating through api its addded to the subscription ....

sullen orchid
#

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.

dark ermine
#

there is no option to remove test clock for already created

sullen orchid
#

No