{% extends "pretixcontrol/organizers/base.html" %} {% load i18n %} {% load bootstrap3 %} {% load static %} {% block title %}{% trans "PSP fee synchronization" %}{% endblock %} {% block content %}

{% trans "PSP fee synchronization" %}

{% if not has_config %}
{% trans "Missing configuration" %}
{% trans "You must first configure your PSP API keys." %} {% trans "Configure" %}
{% else %}

{% trans "PSP configuration status" %}

{% trans "Mollie" %}
{% if mollie_enabled %} {% trans "Enabled" %} {% else %} {% trans "Disabled" %} {% endif %}
{% trans "SumUp" %}
{% if sumup_enabled %} {% trans "Enabled" %} {% else %} {% trans "Disabled" %} {% endif %}
{% if auto_sync_form %}

{% trans "Automatic synchronization" %}

{% csrf_token %}

{% trans "Automatic synchronization retrieves fees for new payments at regular intervals." %} {% trans "Only unsynchronized payments are processed" %}, {% trans "which drastically reduces API calls" %}.

{% bootstrap_field auto_sync_form.auto_sync_enabled layout="horizontal" %} {% bootstrap_field auto_sync_form.auto_sync_interval layout="horizontal" %} {% if psp_config.last_auto_sync %}

{{ psp_config.last_auto_sync|date:"d/m/Y H:i" }} ({{ psp_config.last_auto_sync|timesince }} {% trans "ago" %})

{% endif %}

{% trans "Runs via Pretix periodic task." %} {% trans "Only unsynchronized payments from the last 30 days are processed (impact: ~5-10 API req/day)." %}

{% endif %}

{% trans "Payments pending synchronization" %}

{% if pending_stats.total > 0 %}

{% trans "Total:" %} {{ pending_stats.total }} {% trans "payments" %}

{% if pending_stats.by_provider %}

{% trans "By provider:" %}

{% endif %} {% else %}

{% trans "All payments are synchronized" %}

{% endif %}
{% csrf_token %}

{% trans "Start synchronization" %}

{% bootstrap_form form layout='horizontal' %}
{% trans "Important:" %}
  • {% trans "If no date is provided, ALL unsynchronized payments will be processed (may take time)." %}
  • {% trans "To limit synchronization to a specific period, use the date fields." %}
  • {% trans "Synchronization may take several minutes for a large number of payments." %}
{% trans "Note:" %}
  • {% trans "Synchronization may take several seconds." %}
  • {% trans "Use 'dry-run' mode to simulate without modifying the database." %}
  • {% trans "Already synchronized payments are ignored unless 'Force' is enabled." %}

{% trans "Command line" %}

{% trans "You can also use the following Django command:" %}

python manage.py sync_psp_fees --organizer={{ organizer.slug }} --days=30

{% trans "Available options:" %}

{% endif %} {% endblock %} {% block custom_footer %} {{ block.super }} {% endblock %}