php-commerce/tests
Claude 96f83eca1b
test: add integration tests for Stripe webhook handlers
Add comprehensive test coverage for all Stripe webhook event handlers:
- invoice.paid (subscription renewal, non-subscription, missing sub)
- invoice.payment_failed (past due, notifications, edge cases)
- customer.subscription.created/updated/deleted (full lifecycle)
- payment_method.attached/detached/updated (card management)
- setup_intent.succeeded (hosted setup page)
- charge.succeeded & payment_intent.succeeded (Stripe Radar fraud scoring)
- Idempotency / duplicate event rejection
- Webhook audit trail logging
- Stripe status mapping for all subscription states

Fixes #11

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 16:35:48 +00:00
..
Feature test: add integration tests for Stripe webhook handlers 2026-03-24 16:35:48 +00:00
Unit Initial commit 2026-01-26 23:18:22 +00:00
UseCase fix(dx): add declare(strict_types=1) and fix PSR-12 compliance 2026-03-17 09:08:03 +00:00
Pest.php chore: fix pint code style and add test config 2026-02-23 03:50:05 +00:00
TestCase.php fix(dx): add declare(strict_types=1) and fix PSR-12 compliance 2026-03-17 09:08:03 +00:00