## Summary - Users without a Stripe customer ID (`stripe_id = null`) would hit an `InvalidCustomer` exception when visiting the billing portal - Added a `hasStripeId()` check before calling `redirectToBillingPortal()`, creating the Stripe customer on-the-fly if needed - Added two tests covering both branches (with and without an existing Stripe customer ID) |
||
|---|---|---|
| .. | ||
| Controllers | ||
| Middleware | ||
| Requests | ||
| Responses | ||