Cashier Support for multi tenancy using spatie #48130
Unanswered
MattWiseParking
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, im using spatie/multi-tenancy with laravel cashier subscriptions, but was wondering is there a way that the default routes defined for cashier: stripe/payment/{id} and stripe/webhook can add a middleware prior to calling these routes.
My intention is to use just one stripe account for each tenant, therefor passing the tenant_id from the user object (which gets created when we create a user in the user observer)
so changing the database to the correct database, otherwise the default routes would simply change data in the landlord database and not the tenant database.
Beta Was this translation helpful? Give feedback.
All reactions