The 'customer.subscription.created' webhooks were not handled at all and the logic was overcomplicated.