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

Narindra's avatar

Stripe cachier key from database

I used stripe cachier in my project, I will want to use STRIPE_SECRET & STRIPE_KEY form database, how will I do it?

0 likes
5 replies
Narindra's avatar

@martinbean I would simply like to store the key in the database and used dynamically according to different payment, the advantage is to be able to change the key without going into .env

martinbean's avatar

@Narindra Again, this is what Stripe Connect is for.

A merchant connects their Stripe account to your platform. You’re then able to make charges on their behalf, and also transfer funds from your account to theirs.

Please or to participate in this conversation.