mirror of
https://github.com/xtr-dev/payload-billing.git
synced 2025-12-10 02:43:24 +00:00
🔒 Critical Fixes: - Implement proper optimistic locking with conflict detection and verification - Only register webhook endpoints when providers are properly configured - Move provider validation to initialization for early error detection - Fix TypeScript query structure for payment conflict checking 🛡️ Security Improvements: - Stripe webhooks only registered when webhookSecret is provided - Mollie validation ensures API key is present at startup - Prevent exposure of unconfigured webhook endpoints 🚀 Reliability Enhancements: - Payment update conflicts are properly detected and logged - Invoice updates only proceed when payment updates succeed - Enhanced error handling with graceful degradation - Return boolean success indicators for better error tracking 🐛 Bug Fixes: - Fix PayloadCMS query structure for optimistic locking - Proper webhook endpoint conditional registration - Early validation prevents runtime configuration errors 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>