
devin-ai-integration[bot]andmorgan@cal.com
a542ba486c
feat: add graceful webhook secret validation to billing controller (#22034)
* feat: add graceful webhook secret validation to billing controller
- Wrap Stripe constructEventAsync in try-catch block
- Add proper error logging for failed webhook signature validation
- Return appropriate error responses for invalid webhook secrets
- Follow existing webhook handler patterns from payments module
Co-Authored-By: morgan@cal.com <morgan@cal.com>
* refactor: use specific Stripe error type for webhook signature validation
- Import Stripe types to access StripeSignatureVerificationError
- Check for specific Stripe signature verification error type
- Throw BadRequestException for invalid webhook signatures
- Maintain generic error handling for other webhook processing errors
Co-Authored-By: morgan@cal.com <morgan@cal.com>
* refactor: throw BadRequestException for missing webhook signature and secret
- Use BadRequestException instead of generic Error for missing stripe-signature header
- Use BadRequestException instead of generic Error for missing webhook secret configuration
- Consistent error handling with appropriate HTTP status codes
Co-Authored-By: morgan@cal.com <morgan@cal.com>
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: morgan@cal.com <morgan@cal.com>
2025-06-25 20:39:46 +00:00
..
2025-06-12 11:56:13 +00:00
2025-06-18 07:34:42 +00:00
2025-06-21 11:56:23 +05:30
2025-05-27 13:50:31 +03:00
2025-06-10 11:04:25 +00:00
2025-06-25 20:39:46 +00:00
2024-10-09 11:58:58 -03:00
2025-02-03 11:40:37 +01:00
2025-06-25 15:21:56 +03:00
2025-06-17 12:55:15 +00:00
2025-06-12 11:56:13 +00:00
2025-05-09 19:44:48 +00:00
2024-11-13 15:28:25 +00:00