Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

midascodebreaker's avatar

How to Set Up Laravel Cashier For Multiple Users?

The Current Package of Cashier and Stripe Now has Only One Config... Which is located in config/services.php

What im planning to do is save all stripe api keys and secret in the database for each user... Has Anyone Done This Before? Can You Share Some Insights or Point me to Right Direction Using Laravel Cashier with Stripe

Coz i Want Each User to Have Their Own Stripe Payment Gateway... For their own customer... thanks...

0 likes
2 replies
ahuggins's avatar

Oh wait, you are wanting each user to have their own Stripe account so that they can charge their customers? That will be a little different then.

You would have to create a table that would store your users Stripe keys, then you would have to load the keys for the user before reaching out to Stripe. Though I am not sure people will/should provide both their secret and public keys.

Please or to participate in this conversation.