#vijju

1 messages · Page 1 of 1 (latest)

craggy wedgeBOT
marble dune
#

Hi there!

#

Which webhook events are you listening to?

winter remnant
#

invoice.payment_succeeded
invoice.paid
charge.succeded

marble dune
#

Then that's expected. The metadata on the phase object gets copied on the subscription object, not on the invoice or charge.

#

So when you get the invoice.* event, check the subscription property to find the related subscription, and there you will find the metadata.

winter remnant
#

will i get each phase meta data?

#

i want to identify for which phase the paymen has done

marble dune
#

If the subscription is in phase 1, then the phase 1 metadata will be set. If it's in phase 2, then the phase 2 metadata will be set. And so on.

winter remnant
#

ok
once charge is succeded
then i will get invoice and from invoice i will reach to subscription object then i will check for meta data
thanks

marble dune
#

Exactly!

#

Happy to help 🙂