{% extends 'admin/base.html.twig' %} {% block title %}Configuration Paiement - Boutique{% endblock %} {% block breadcrumb %}Boutique Configuration paiement{% endblock %} {% block body %}

Configuration des paiements

{% for message in app.flashes('success') %}
{{ message }}
{% endfor %} {{ form_start(form) }}
Stripe (Cartes bancaires)
{{ form_row(form.stripeEnabled) }}
Configuration Stripe :

Les clés Stripe (publique et secrète) sont configurées dans les Paramètres généraux.
Configurer les clés Stripe

{% if site.stripePublicKey and site.stripeSecretKey %}
Clés Stripe configurées
{% else %}
Clés Stripe non configurées - Configurez-les dans les paramètres du site
{% endif %}
PayPal
{{ form_row(form.paypalEnabled) }}
Obtenir vos identifiants PayPal :
  1. Créez un compte sur developer.paypal.com
  2. Créez une application dans My Apps & Credentials
  3. Copiez le Client ID et le Secret
{{ form_row(form.paypalClientId) }}
{{ form_row(form.paypalSecret) }}
{{ form_row(form.paypalSandboxMode) }}
Virement bancaire
{{ form_row(form.bankTransferEnabled) }}
Ces informations seront envoyées par email aux clients qui choisissent le virement bancaire.
{{ form_row(form.bankName) }}
{{ form_row(form.iban) }}
{{ form_row(form.bic) }}
{{ form_row(form.bankAccountOwner) }}
Configuration des factures
{{ form_row(form.invoicePrefix) }}
{{ form_row(form.invoiceNumberStart) }}
{{ form_row(form.invoiceLegalInfo) }}
Compteur actuel : {{ settings.invoiceCounter }}
Prochaine facture : {{ settings.nextInvoiceNumber }}
Méthodes actives
Stripe {{ settings.stripeEnabled ? 'Actif' : 'Inactif' }}
PayPal {{ settings.paypalEnabled ? 'Actif' : 'Inactif' }}
Virement {{ settings.bankTransferEnabled ? 'Actif' : 'Inactif' }}

{% set activeCount = (settings.stripeEnabled ? 1 : 0) + (settings.paypalEnabled ? 1 : 0) + (settings.bankTransferEnabled ? 1 : 0) %} {% if activeCount == 0 %}
Aucune méthode active
{% else %}
{{ activeCount }} méthode(s) active(s)
{% endif %}
{{ form_end(form) }}
{% endblock %}