Settings
API Keys
The API Keys section is essential for connecting your frontend to CourseLayer and enabling Stripe payments.
API keys must be included in every request to the backend.
Managing API Keys
- Creating API Keys – Users can generate multiple API keys for different environments (e.g., development, production).
- Viewing API Keys – Clicking on an API key allows users to copy the key and reveal the secret for integration.
- Deleting API Keys – Keys can be deleted at any time.
- ⚠️ Removing an active key will immediately break any connections using it.
- No Permission Restrictions – All API keys have full access.
- 🚫 Read-only or restricted keys are not available at this time.
Stripe Integration
To enable payments, users must manually retrieve their API Key, Secret Key, and Webhook Secret from Stripe and enter them into CourseLayer.
Setting Up Stripe Webhooks
- Retrieve Webhook URL – Found at the bottom of the API Keys section.
- Add the Webhook URL to Stripe –
- In your Stripe dashboard, create a new webhook and enter the provided URL.
- Generate Webhook Secret –
- After adding the webhook, copy the secret from Stripe.
- Enter Webhook Secret in CourseLayer –
- Paste the secret into the designated field in CourseLayer.
Webhook Event Handling
The Stripe webhook tracks:
✅ Successful Payments
✅ Refunds
✅ Subscription Changes
✅ Failed Payments
💡 Note:
Proper API key and webhook setup is required for your frontend to function and for payments to be processed correctly.