Stripe Setup
Set up Stripe payment processing for your DevOur project.
Create a Stripe Account
- Go to Stripe Dashboard
- Create an account or sign in
- Complete the account setup process
Get API Keys
- In Stripe Dashboard, go to Developers > API keys
- Copy your Publishable key (starts with
pk_) - Copy your Secret key (starts with
sk_)
For development, use the test mode keys. Switch to live keys for production.
Configure in DevOur
Add your Stripe credentials in the DevOur web app:
- Open your project in DevOur
- Go to Settings and open the Integrations tab
- In the Stripe section, enter:
- Stripe Secret Key
- Stripe Public Key
- Click Save
For more details on available settings, see Project Settings.
Set Up Webhook
DevOur uses webhooks to process subscription events. Configure this after your application is hosted:
- In Stripe Dashboard, go to Developers > Webhooks
- Click Add endpoint
- Enter your webhook URL:
https://your-domain.com/webhook/stripe - Select events to listen for:
customer.subscription.createdcustomer.createdcustomer.updatedcustomer.deleted
- Click Add endpoint
The webhook endpoint is already implemented in your DevOur bundle at
/webhook/stripe once your project has at least one product. See
Webhooks for what each event does.
Verify Setup
- Download and run your project bundle
- Navigate to a subscription page
- Use Stripe test cards to test
payments:
- Success:
4242 4242 4242 4242 - Decline:
4000 0000 0000 0002
- Success:
- Check Stripe Dashboard for test transactions
Next Steps
After configuring Stripe, create your subscription products in the DevOur application. See Creating Products for detailed instructions.
For more information about Stripe features, visit the Stripe Documentation.