{% extends "pretixcontrol/organizers/base.html" %} {% load i18n %} {% load bootstrap3 %} {% block title %}{% trans "Bank fees" %}{% endblock %} {% block content %}

{% trans "Bank fees" %}

{% trans "Configure your payment providers' API keys (Mollie, SumUp) to enable automatic bank fees synchronization." %}

{% trans "Fee synchronization" %}

{% trans "Synchronize bank fees from your Mollie and SumUp payments with real PSP data." %}

{% trans "Access synchronization" %}

{% csrf_token %}

{% trans "Mollie" %}

{% bootstrap_field form.mollie_enabled layout="horizontal" %}

{% trans "Available on" %} Mollie Dashboard

{% bootstrap_field form.mollie_test_mode layout="horizontal" %}

{% trans "Mollie Connect (OAuth)" %} {% trans "Optional - To retrieve real PSP fees" %}

{% if psp_config.mollie_oauth_connected %}
{% trans "Connected" %} - {% trans "Real PSP fees are synchronized automatically" %} {% if psp_config.mollie_token_expires_at %}
{% trans "Expiration:" %} {{ psp_config.mollie_token_expires_at|date:"d/m/Y H:i" }} {% endif %}
{% trans "Disconnect" %} {% else %}

{% trans "Without OAuth, only estimated fees will be calculated (less accurate)" %}

{% bootstrap_field form.mollie_client_id layout="horizontal" %} {% bootstrap_field form.mollie_client_secret layout="horizontal" %} {% if psp_config.mollie_client_id and psp_config.mollie_client_secret %} {% else %}
{% trans "OAuth configuration:" %}
  1. {% trans "Create an app on" %} Mollie Dashboard
  2. {% trans "Callback URL:" %} {{ request.scheme }}://{{ request.get_host }}/_export_frais/mollie/callback/
  3. {% trans "Copy Client ID and Secret above, then save" %}
{% endif %} {% endif %}

{% trans "SumUp" %}

{% bootstrap_field form.sumup_enabled layout="horizontal" %}

{% trans "Create an OAuth app on" %} SumUp Developer {% trans "to obtain an Access Token" %}

{% bootstrap_field form.sumup_test_mode layout="horizontal" %}

{% trans "Advanced options" %}

{% bootstrap_field form.cache_duration layout="horizontal" %}

{% trans "Cache reduces API calls. Recommended: 3600s (1h)" %}

{% endblock %}