- Check payment_status == "paid" before granting credits — prevents granting credits for unpaid/pending checkout sessions - Idempotency guard: query credit_transactions for existing ref.stripe_payment_id before processing — Stripe retries webhooks on timeout, this prevents double credits Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| auth | ||
| models | ||
| routes | ||
| services | ||
| utils | ||
| .DS_Store | ||
| __init__.py | ||
| db.py | ||
| extensions.py | ||
| websocket_debug_tap.py | ||
| websocket_manager.py | ||
| websocket_manager_async.py | ||