Connect Stripe to Failment
Enable real-time payment monitoring, automatic recovery detection, and advanced failed payment analytics.
Prerequisites
- Active Stripe account with payment processing enabled
- Admin access to your Stripe Dashboard
- Active Failment account
Configuration
Follow these steps to connect your Stripe account to Failment for comprehensive payment monitoring and recovery tracking.
Step 1: Create Restricted API Key
Create a secure API key with minimal required permissions for Failment integration.
rk_live_
or rk_test_
)Security Note:
This restricted key only has read permissions for payment data and limited write permissions for webhooks. It cannot modify your payments or customers.
Step 2: Configure Webhook Endpoint
Set up your personal webhook endpoint to receive real-time payment events.
Your personal webhook URL:
https://failment.com/api/stripe/webhook/your-email%40example.com
Prefer a video guide?
Watch the setup and follow the step-by-step SOP with screenshots: View guide
Step 3: Get Webhook Secret
Retrieve the webhook signing secret to enable secure communication.
whsec_
)Webhook Security:
Webhooks are secure and only send data to your configured endpoint. We use webhook signatures to verify the authenticity of each request.
Step 4: Connect to Failment
Location: https://failment.com
In your Failment dashboard:
- Stripe API Key (from Step 1)
- Webhook Secret (from Step 3)
Success! Your Stripe integration is now active.
How Failment's Webhook System Works
Your personal webhook URL and secret enable advanced failed payment recovery features:
- Secure Authentication: Webhook secrets verify that events are actually from Stripe
- Personal URL: Each user gets a unique webhook endpoint for better security
- Real-time Monitoring: Instant notifications when payments fail
- Automatic Recovery Detection: Tracks when customers retry and succeed within 27 days
- Multi-channel Alerts: Notifications via Discord, Slack, Teams, and email
- Customer Communications: Automated email notifications to customers about failed payments
Testing Your Integration
After successful connection, you can test your integration:
Troubleshooting
Webhook events not being received?
- Verify your webhook URL is exactly as shown in Step 2
- Check that all required events are selected
- Ensure the webhook secret matches exactly (no extra spaces)
API connection issues?
- Verify you're using a restricted key, not a publishable key
- Check that the key has all required permissions
- Make sure you're using the live key for production data
Still having issues?
Contact our support team at info@failment.com
We'll respond within 24-48 hours with a solution.
Advanced
Multiple Stripe Accounts
If you have multiple Stripe accounts, you'll need to set up separate webhook endpoints for each account using different webhook URLs.
Test vs Live Mode
Make sure to configure both test and live webhooks if you want to monitor payments in both environments. Use the corresponding API keys for each mode.
Disconnect Integration
Settings → Integrations → Stripe → Disconnect