Handle Retries in Your Integration
Building your integration to work well with CCG's automatic retry behavior, and troubleshooting when it doesn't match what you expect. For how retry logic works conceptually, see Retry Mechanisms β Overview.
Error Handling Best Practicesβ
When implementing retry logic in your integration:
- Display Clear Error Messages: Provide specific guidance that helps users understand and fix their issues
- Implement Progressive Guidance: Increase level of detail with each retry attempt
- Offer Alternative Payment Methods: After multiple failures with one payment method
- Track Retry Patterns: Monitor common failure points to improve your integration
- Test Retry Scenarios: Thoroughly test your integration with various error scenarios
See Retry Mechanisms β Settings, Webhook & Error Reference for exactly which session mode / payment method combinations send a webhook, are retriable, or invalidate the session.
Troubleshootingβ
Common Issuesβ
-
Session Invalidation Issues: If sessions are being invalidated unexpectedly, check that you're not exceeding the retry count limit.
-
Missing Webhook Events: Ensure you've correctly configured webhook listeners and are accounting for the different webhook behavior between payment methods β see the Session Mode Configuration table.
-
Error Reporting Discrepancies: Different payment methods (Card vs ACH) have different error reporting behaviors β see Error Classification and Webhook Behavior.