Authentication Method
API Key Setup
Step 1: Get Your Secret Key
- Log in to the Stripe Dashboard
- Go to Developers → API keys
- Copy your Secret key (starts with
sk_live_ for production or sk_test_ for testing)
- 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)
- In the Stripe Dashboard, go to Developers → Webhooks
- Click Add endpoint
- Enter your endpoint URL (e.g.,
https://yourapp.com/webhooks/stripe)
- Select the events to listen for
- Copy the Signing secret (starts with
whsec_)
pnpm corsair setup --plugin=stripe webhook_signature=whsec_your-signing-secret
Required Credentials Summary
| Credential | Required For | Where to Find |
|---|
| Secret Key | All API calls | Dashboard → Developers → API keys |
| Webhook Signing Secret | Webhook verification | Dashboard → Developers → Webhooks |
For general information about how Corsair handles authentication, see Authentication.