#Jonah Librach

1 messages · Page 1 of 1 (latest)

tribal sundialBOT
viral scaffold
#

If you need that information from the payment_intent.* webhook events then you'd need to re-retrieve the Subscription in your event handler

prisma veldt
#

@viral scaffold, thanks for prompt response / chat-entry

#

So which webhook event should I listen for to confirm the subscription is active?

#

From there, I just want to take my app's userId and process accordingly

viral scaffold
#

You can listen for customer.subscription.created and check the status of the Subscription to see if it's active. If it's not active you'll need to wait for the customer.subscription.updated event to see when the status is updated to active

prisma veldt
#

And that will give me the metadata I passed in for subscription_data in the Session object?

viral scaffold
#

Yes

prisma veldt
#

Okay, thank you I appreciate that. Looks like it works.