#dragon.frost

1 messages · Page 1 of 1 (latest)

daring sinewBOT
wooden wharf
#

Hi! Let me help you with this.

#

Have you tried this?

wanton pond
#

Sorry, I have but not properly. let me look at it again.

#

too many things happening on my code because of the old codebase

#

Seems like it does. 😄

I have to use a webhook event that is triggered when the user confirms a subscription payment from the frontend or a subscription with trial is created. Which event should I use here?

wanton pond
#

Also, invoice.payment_succeeded event only provides subscriptionId on "subscription" property. how do I make sure its gives the subscription object as a whole?

daring sinewBOT
hollow pivot
#

invoice.paid should work

#

You would need to retrieve the invoice and expand the subscription to do that