Option 1: API Key (Simplest)
- Log in to the Stripe Dashboard
-
Find Your API Keys
- Navigate to Developers → API Keys in the left menu
- Under Standard keys, you’ll see:
- Publishable key (starts with
pk_...) — for client-side use - Secret key (starts with
sk_test_...orsk_live_...) — for server-side use
- Publishable key (starts with
- Copy the Secret Key (keep it secure, never expose in client-side code)
Option 2: OAuth 2.0 via Stripe Connect (Multi-User)
-
Create a Stripe Connect Integration
- Go to Stripe Dashboard → Settings → Connect
- Scroll to Integration settings and click + Add Integration
-
Register Your OAuth App
- Fill in:
- Name: e.g.,
My Integration - Redirect URL: Your OAuth callback URL
- Website / Privacy Policy / EULA: Optional
- Name: e.g.,
- Fill in:
-
Get OAuth Credentials
- After saving, Stripe generates:
- Client ID (starts with
ca_...) - Client Secret
- Client ID (starts with
- Copy both values
- After saving, Stripe generates:
-
Configure Scopes
- Stripe OAuth supports two scopes:
read_only— Read access to the connected accountread_write— Full access to the connected account
- Stripe OAuth supports two scopes:
Key Details
- Dashboard: https://dashboard.stripe.com
- Auth Type: API Key or OAuth 2.0 (Stripe Connect)
- Base API URL:
https://api.stripe.com/v1 - Authorization URL:
https://connect.stripe.com/oauth/authorize - Token URL:
https://connect.stripe.com/oauth/token - Credentials Location:
- API Keys: Developers → API Keys
- OAuth: Settings → Connect → Integration settings
- OAuth Scopes:
read_only,read_write