API keys

1. Navigate to the API Keys Section

  • In the dashboard, click on the Developers section in the sidebar.

  • Then click on API keys.

2. Find Your API Keys

  • Publishable Key: This key is used on the client-side to make requests to Stripe. Look for a key labeled as Publishable key; it starts with pk_. Copy this key.

  • Secret Key: This key is used on the server-side to perform secure operations like creating charges. Look for a key labeled as Secret key; it starts with sk_. This key is sensitive, so handle it securely. Click "Reveal live key" if it's not visible and copy it.

3. Set Up Your Environment Variables

  • Store these keys securely in your project's .env file .

Last updated