#RafaCitec-subscription expiry
1 messages ยท Page 1 of 1 (latest)
thanks
yesterday one of your collagues say me that I must use event checkout.session.completed for retrieve expiration_date of suscription
I get the expires_at field
but this field contains the date of Tomorrow
and my suscriptions are of 1 month
this is the expiration of the checkout session
you need to retrieve the subscription
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
but there is no expiration date
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ok, but this event not is send me, when a client renew his subscription
I receive this events
this would be another event
yes
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I receive in webhook customer.subscription.updated event
even when is a new client?
with first subscription
no that would be customer.subscription.created
so this is why you should rely on checkout.session.completed for the first event
and use customer.subscription.updated for the future calls
and you can always listen to invoice.paid if you're looking for a way to track the customer paying their invoices/subscription fees
I like define a Flow but I can't see it
We need only customer_email and expiration_date
take some time to read that doc
it will explain the whole flow
Ok, I read all
using event invoice.paid all my cases are covered
either a new subscription or a renewal
yes at first I didn't know what the use case is
Hey, taking over here. Let me know if there's any follow-up Qs I can answer!