#andonz

1 messages · Page 1 of 1 (latest)

strong oarBOT
waxen sparrow
#

hi! sure, every Invoice has a subscription field and there's an invoice.paid webhook event for the recurring payments.

still oyster
#

i currently listen to charge.succeeded as that was how the initial implementation hsa been done. and I cant change it, as this is part of a CMS payment processor. if I change the event i listen to all the clients would have to adjust their webhook.

waxen sparrow
#

well the Charge object links to the Invoice, and the Invoice links to the subscription

still oyster
#

yes exactly

#

does it have the original subscription id?

still oyster
#

at the moment of creation

waxen sparrow
#

the ID sub_xxx never changes, so yes