Stripe Setup Guide
Complete guide to setting up your Stripe account for use with Codeless Sync.
Stripe Setup Guide
This guide helps you configure your Stripe account and obtain your API Key for Codeless Sync. We recommend using a restricted key for enhanced security.
Prerequisites
- An active Stripe account
- Access to your Stripe Dashboard
Step 1: Access API Keys
- Log in to your Stripe Dashboard
- Click Developers in the left sidebar
- Select API keys
- Click Create Restricted Key
- Click Providing this key to another website
- Name the Restricted Key
- Copy and paste the URL into your URL box
- Do Not tick Customize permissions for this key checkbox
- Click Create restricted key, the restricted key is now created
If you don't see the Developers section, you may need admin permissions on your Stripe account.
Step 2: Understand Environments
Stripe has two environments, which are automatically detected from your API Key:
Test Mode
- Purpose: Development and testing
- Restricted Key: Starts with
rk_test_(Recommended) - Secret Key: Starts with
sk_test_(Fallback) - Data: Test data only, no real charges
- When to use: Initial setup, development, staging
Live Mode
- Purpose: Production with real customers
- Restricted Key: Starts with
rk_live_(Recommended) - Secret Key: Starts with
sk_live_(Fallback) - Data: Real customer data and charges
- When to use: Production applications only
The environment is automatically detected from your API Key prefix. Use test keys (rk_test_ or sk_test_) for development and live keys (rk_live_ or sk_live_) for production.
Step 3: Copy Your API Key
Restricted Key (Recommended)
After creating your restricted key in Step 1:
- Find your newly created key in the Restricted keys section
- Click the key to reveal it, or click Copy to copy it directly
- Store it securely (you'll paste this in Codeless Sync)
Your restricted key starts with rk_test_ (test mode) or rk_live_ (live
mode).
Secret Key (Fallback)
If you prefer to use a standard secret key instead:
- In the API keys page, find the Standard keys section
- Click Reveal test key (or Reveal live key)
- Click Copy to copy the key
- Store it securely
Stripe does not recommend sharing secret keys with third parties. Secret keys have full access to your Stripe account. Consider using a restricted key instead for enhanced security.
Step 4: Use in Codeless Sync
- Go to your CLS dashboard
- Create a new configuration
- Paste your Stripe API Key in Step 3
- Click Test Connection
- Proceed with configuration
Security Best Practices
Use Restricted Keys
For enhanced security when using third-party services like CLS:
- Recommended: Use restricted keys (
rk_test_orrk_live_) - Fallback: Secret keys (
sk_test_orsk_live_) are supported but not recommended for third-party integrations - Stripe recommends restricted keys for any service that doesn't need full account access
Rotate Keys Regularly
Rotate your API keys every 90 days (Optional):
- Generate a new key in Stripe
- Update all configurations in CLS
- Delete the old key in Stripe
Monitor Usage
Check your Stripe dashboard regularly for:
- Unexpected API calls
- Failed authentication attempts
- Unusual access patterns
Stripe API Limits
Stripe rate limits API requests:
- Default: 100 requests/second
- Burst: Up to 1000 requests/second for short periods
CLS automatically handles rate limiting with:
- Batch processing
- Request throttling
- Exponential backoff on errors
Testing Your Setup
After adding your Stripe key to CLS:
- Create a test configuration
- Run a manual sync
- Verify data appears in your database
- Check sync history for any errors
Common Issues
Invalid API Key
- Verify you copied the entire key
- Check you're using the correct environment (test vs live)
- Ensure the key hasn't been deleted in Stripe
Permission Denied
- If using a restricted key, verify it has access to the resources you're syncing
- Check that data exists in Stripe (e.g., you have customers, invoices, etc.)
- Ensure your Stripe account is active
Rate Limit Exceeded
- Reduce sync frequency
- Set up scheduled syncs instead of manual triggers
- Contact Stripe support to increase limits
Next Steps
- Quick Start Guide - Create your first sync
- Configurations - Learn about sync configs
- Troubleshooting - Common issues