#abranti

1 messages · Page 1 of 1 (latest)

turbid saddleBOT
vocal gazelle
#

hi! you can't really, that kind of thing is not supported right now

#

I think the only option really would be to manually add metadata with an Update Subscription API call, when you're handling the checkout.session.completed webhook event that happens when a user creates their subscription through the Pricing Table.

celest kraken
#

Yeah I didn't want to handle the checkout.session.completed just the customer.subscription.created and deleted. But those calls don't have the client-subscription-id

#

But I will try to do that

vocal gazelle
#

yeah you have to use the Checkout event really, that is a core part of how all these integrations work

#

for example customer.subscription.created is definitely wrong, because that happens as soon as the Customer enters their details in the Checkout page, but the Subscription might be incomplete and they have to re-enter the details or do 3D Secure, so it's not until you get the checkout.session.completed event that everything is actually fully set up and created

celest kraken
#

oh! Ok. So if I want to get notified when someone pays and when someone churns. I listen to checkout.session.completed and to customer.subscription.deleted ?

vocal gazelle
#

yep

celest kraken
#

thanks