Tenant-Based Billing: Fixing Cashier Customer Model
Introduction
After consolidating billing to a tenant-based system (Phase 3), we encountered an issue with the Cashier package. The default customer model was still set to User, causing errors when Stripe webhook events triggered.
The Problem
The stripe_id column, expected by Cashier, was not found because it was looking in the User model instead of the Tenant model.