# Pricing

## Stripe IDs (sandbox)

### Solo
- Product: `prod_U6wo1NrlU3ZLp5`
- Mensuel (4,99 €): `price_1T8iutHrieUNsW0q67BNUrOx`
- Annuel (49 €): `price_1T8iv5HrieUNsW0qvoRs0HWo`

### Pro
- Product: `prod_U6wou6l5A8MSQx`
- Mensuel (9,99 €): `price_1T8ivCHrieUNsW0q9sCU0gwQ`
- Annuel (99 €): `price_1T8ivEHrieUNsW0qys9F1nCh`

## Config Stripe dans `lib/auth.ts`

- Free trial : 7 jours, sans CB (V1 BYOK)
- `allowReTrialsForDifferentPlans: true` — un user peut essayer Solo puis Pro
- Subscription liee au `userId` (V1) ou `organizationId` (futur Enterprise)

## Webhook

```
POST /api/auth/stripe/webhook
```

Gere par le plugin `@better-auth/stripe`. Verifie la signature via `STRIPE_WEBHOOK_SECRET`.

### Ecouter en local
```bash
stripe listen --forward-to localhost:3000/api/auth/stripe/webhook
```
