#angieology - webhook

1 messages · Page 1 of 1 (latest)

golden zephyr
#

hey there, can we chat in this thread please?

livid gazelle
#

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

golden zephyr
#

ok sorry catching up here and reading your other messages, give me a few minutes

onyx stirrup
#

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

golden zephyr
#

one-off invoices will not have a subscription attribute

#

(it will be null)

livid gazelle
#

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