- Add nullable debt field to User entity with addDebt/reduceDebt helpers - On refund webhook: add refunded amount to organizer debt - On dispute webhook (charge.dispute.created): add disputed amount to debt - OrderController: if organizer has debt > 0, payment goes to main Stripe account instead of connected account, debt reduced on payment success - Display debt amount on organizer dashboard with warning message - Add dispute notification email template - Migration for debt column on user table Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
14 lines
731 B
Twig
14 lines
731 B
Twig
{% extends 'email/base.html.twig' %}
|
|
|
|
{% block title %}Litige recu{% endblock %}
|
|
|
|
{% block content %}
|
|
<h2>Bonjour {{ firstName }},</h2>
|
|
<p>Un litige de <strong>{{ amount }} €</strong> a ete ouvert sur la commande <strong>{{ orderNumber }}</strong>.</p>
|
|
<p>Ce montant a ete ajoute a votre dette. Les paiements de vos clients seront retenus jusqu'a l'apurement complet.</p>
|
|
<div style="background:#fef2f2;border-left:4px solid #dc2626;padding:12px 16px;margin:16px 0;">
|
|
<p style="font-weight:700;font-size:13px;color:#991b1b;margin:0;">Dette totale : {{ debt }} €</p>
|
|
</div>
|
|
<p>Contactez <a href="mailto:contact@e-cosplay.fr">contact@e-cosplay.fr</a> pour toute question.</p>
|
|
{% endblock %}
|