Skip to main content

Authentication Method

API Key Setup

Step 1: Get Your Secret Key

  1. Log in to the Stripe Dashboard
  2. Go to DevelopersAPI keys
  3. Copy your Secret key (starts with sk_live_ for production or sk_test_ for testing)
  4. Store it securely
Storing Credentials:
pnpm corsair setup --plugin=stripe api_key=sk_live_your-secret-key
Use sk_test_ keys during development to avoid real charges.

Webhook Setup (Optional)

  1. In the Stripe Dashboard, go to DevelopersWebhooks
  2. Click Add endpoint
  3. Enter your endpoint URL (e.g., https://yourapp.com/webhooks/stripe)
  4. Select the events to listen for
  5. Copy the Signing secret (starts with whsec_)
pnpm corsair setup --plugin=stripe webhook_signature=whsec_your-signing-secret

Required Credentials Summary

CredentialRequired ForWhere to Find
Secret KeyAll API callsDashboard → Developers → API keys
Webhook Signing SecretWebhook verificationDashboard → Developers → Webhooks
For general information about how Corsair handles authentication, see Authentication.