Overview
Payments fail sometimes. Here’s how to diagnose and fix issues.Common Decline Reasons
Card Declined
Processing Errors
Validation Errors
Decline Rate Too High?
Normal decline rates: 5-10% If higher, check:1. Card Quality
2. Fraud Signals
3. Technical Issues
Subscription Payment Failures
Recurring payments need special handling.Why Subscriptions Fail
Our Retry Logic
We automatically retry failed subscription payments:Dunning Emails
Automated emails to customers:- Payment failed - Immediate notification
- Retry scheduled - Heads up before next attempt
- Update card - Link to customer portal
- Final warning - Before subscription cancels
Chargebacks & Disputes
Chargeback Process
Timeline
Winning Disputes
Strong evidence includes:For Digital Products
- Customer IP address
- Download/access logs
- Account activity
- Device fingerprint
For Subscriptions
- Sign-up confirmation
- Usage history
- Previous successful payments
- Cancellation policy (agreed to)
Preventing Disputes
Testing Payments
Use test mode to simulate scenarios.Test Card Numbers
Test Mode Tips
- Use
X-Environment: testheader in API calls - Use API keys created for the test environment
- No real money moves
- Test all scenarios before going live
- Verify webhooks work correctly
Webhook Issues
Not Receiving Webhooks?
Webhook Signature Invalid?
Debugging Webhooks
- Check Dashboard → API & Development → Webhooks
- View recent attempts
- See request/response details
- Resend failed webhooks
Integration Checklist
Before going live:API Integration
- Using API keys created for production environment
-
X-Environment: prodheader set for live API calls - Error handling for all API calls
-
X-Idempotency-Keyset on every write you must not duplicate — the SDKs no longer generate one, so pass{ idempotencyKey }on the call (or set the header when calling REST directly); without it a retried write executes twice - Webhook endpoints configured and tested
Checkout Flow
- Card form validates input
- Loading states during processing
- Clear error messages
- Success confirmation page
Subscriptions
- Trial periods configured
- Proration settings correct
- Cancellation flow works
- Customer portal enabled
Error Handling
- Graceful decline handling
- Retry logic for network errors
- Logging for debugging
- Customer-friendly messages
Getting Help
Self-Service
Contact Support
When contacting us, include:- Payment/customer ID
- Timestamp of issue
- Error message (exact)
- Steps to reproduce
- Expected vs actual behavior