So I configured Webhooks and used the recommended approach of calling the RevenueCat API to handle logic.
This works for all events tested so far. Except for the Cancellation event (I canceled Platinum):
As shown in the image. The function is called at 11:38:35 with the cancellation event and after calling the RevenueCat API to check the expiration date, the platinum membership is not yet expired and thus my logic to remove the enitlement is not triggering as I am checking if the expiration date is in the past.
Did I oversee something here?