#joshualaba

1 messages · Page 1 of 1 (latest)

main etherBOT
lean zodiac
#

Hi there!

drifting drum
#

Hello!

lean zodiac
#

Yes I'm pretty sure. Why?

drifting drum
#

Could i give you a scenario which seems to be an edge case I can't figure:

  1. I have a plan with billing date 28th, assuming today is 20th and I cancel the plan -> I will receive a customer.subscription.updated webhook with a canceled_at date immediately. But I will only receive a customer.subscription.deleted webhook only on the 28th am i right?
lean zodiac
#

assuming today is 20th and I cancel the plan
Can you clarify how exactly you cancel the subscription? By updating the canceled_at property?

drifting drum
#

Erm no, I just cancel the subscription I have on stripe checkout portal

#

(On test ^)

lean zodiac
#

You mean the customer portal?

drifting drum
#

Yea right

lean zodiac
#

What's your settings in the customer portal? To cancel te subscription immediately or at the end of the current billing cycle?

drifting drum
#

Cancel at end of billing period

lean zodiac
#

Got it.

I will receive a customer.subscription.updated webhook with a canceled_at date immediately. But I will only receive a customer.subscription.deleted webhook only on the 28th am i right?
Then yes that's correct

drifting drum
#

When I receive the customer.subscription.updated webhook, the canceled_at is null though?

#

is this expected behaviour?

lean zodiac
#

cancel_at_period_end: true

drifting drum
#

and on the 28th i will receive a customer.subscription.deleted webhook with canceled_at having a date (NOT NULL)?

lean zodiac
drifting drum
#

Okay got it i think what ur telling is what Im expecting now

#

Could i ask 1 more qn:
What if the billing date is the 28th, and today the 28th I cancel the plan.
Will I receive both customer.subscription.updated and customer.subscription.deleted webhooks or only 1, customer.subscription.deleted

lean zodiac
#

You should get both I think. But again you can test with this Test Clocks.

drifting drum
#

awesome, thank you

lean zodiac
#

Happy to help 🙂