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

Anotheruser's avatar

How to set your Stripe Secret Environment Variable on your production server

Hi.

I am working my way through the Subscriptions with Stripe tutorial - https://laracasts.com/lessons/painless-subscriptions-with-laravel-and-stripe and have come across a problem.

During the tutorial (10:20) Jeffery states that you need to 'On your production server, set a Stripe secret environment variable equal to your production API key'.

I have no idea how to do this.

I would very much appreciate it if anyone can advise.

Thanks

Barry.

0 likes
5 replies
bashy's avatar

Ah yeah my link was for Forge, but you get the idea :)

Please or to participate in this conversation.