#atul-mail

1 messages · Page 1 of 1 (latest)

safe loom
#

Hi there, sounds like you want to listen for the customer.subscription.updated for when the Subscription moves from a status of trialing to either past_due or active.

spark fable
#

Let me elaborate it.

#

Suppose a customer is offered a trial period of 30 days, now when the 30days have passed, i want to send mail to customer.
Basically i want to listen when trial period ends

safe loom
#

Right, the above that I explained will tell you that the trial ended.

#

customer.subscription.updated will fire when the status of a Subscription changes

#

In this case the status is changing from one of trialing to something different

#

So you know that indicates a trial ended

#

The other thing you can use is the customer.subscription.trial_will_end

#

But that will fire 3 days before the trial ends

#

So you would need to then set an email to be sent in 3 days

spark fable
#

Thanks

#

When stripe fire a webhook, is there a way to config the meradata

#

Metadat*

safe loom
#

You configure the metadata on the object that the webhook contains