#angieology - webhook
1 messages · Page 1 of 1 (latest)
ok
could we check if this object has a subscription or if there's anything with the construct webhook call?
we aren't sure why we are seeing a 'subscription' object appear/disappear during the flow of our webhook method
ok sorry catching up here and reading your other messages, give me a few minutes
Hi angieology. Looking at the specific event that you shared from our side, the subscription parameter is there. How do you modify the event variable in your code? After the construct_event call it seems that it's there as expected (according to your message), but it seems something is happening in your business code that's causing the issue
It might help to see the snippet of code that's failing
yes, this sounds like something you'll need to do if you have code paths making assumptions about invoices and you use both subscription and one-off invoices
one-off invoices will not have a subscription attribute
(it will be null)
ok we found the business code that has the error, it looks like we recently added prorated charges but our logic wasn't adapted to that