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

manshu's avatar
Level 28

Stripe Meta Tags

https://laracasts.com/series/billing-with-stripe/episodes/3

Was watching this tutorial, not sure how to use meta tags for publishable keys. Can someone guide me with this ?

0 likes
2 replies
ahuggins's avatar
Level 51

Add the meta tag to your layout or blade template...or whatever you are using. Should look something like: <meta name="stripe-key" content="{{ env('STRIPE_KEY') }}">

Then be sure to put the STRIPE_KEY=actual_token_here in your .env file.

Then you can access the meta tag in JS and use it to get your customer token.

Please or to participate in this conversation.