Register Paddle sandbox webhooks

This commit is contained in:
Codex Agent
2026-01-02 22:25:11 +01:00
parent 3c0e7afeb2
commit dfdbf09bf8
4 changed files with 214 additions and 0 deletions

View File

@@ -107,6 +107,31 @@ Diese Sektion ist bewusst generisch gehalten, damit sie auch nach Implementation
- Bei `transaction.failed` / `transaction.cancelled`:
- Session wird auf `failed` gesetzt, Coupons werden als fehlgeschlagen markiert.
### 6.2.1 SandboxWebhook registrieren
- Command (Sandbox-Umgebung aktiv):
- `php artisan paddle:webhooks:register --traffic-source=simulation`
- Optional mit URL-Override:
- `php artisan paddle:webhooks:register --url=https://staging.example.com/paddle/webhook --traffic-source=simulation`
- EventListe kommt aus `config/paddle.php` (`webhook_events`). Override möglich:
- `php artisan paddle:webhooks:register --events=transaction.completed --events=subscription.created`
### 6.2.2 Verarbeitete Paddle-Events
Die WebhookHandler erwarten mindestens diese Events:
- `transaction.created`
- `transaction.processing`
- `transaction.completed` (inkl. Add-ons/GiftVouchers)
- `transaction.failed`
- `transaction.cancelled`
- `subscription.created`
- `subscription.updated`
- `subscription.paused`
- `subscription.resumed`
- `subscription.cancelled`
- `subscription.past_due`
### 6.3 Subscriptions & TenantPackages
- SubscriptionEvents (`subscription.*`) werden ebenfalls von `CheckoutWebhookService` behandelt: