{% extends "wagtailadmin/base.html" %} {% load i18n %} {% block titletag %}{% trans "Subscription Settings" %}{% endblock %} {% block breadcrumbs %} {% endblock %} {% block content %} {% include "wagtailadmin/shared/header.html" with title="Subscription Settings" icon="cog" description="Configure payment processors and system settings" %}

{% trans "Payment Processors Status" %}

{% if payment_processors %}
{% for provider, config in payment_processors.items %}

{{ provider|title }}

{% if config %} ✓ {% trans "Configured" %} {% else %} ⚠ {% trans "Not Configured" %} {% endif %}
{% if config %}
{% if provider == 'stripe' and config.public_key %}
{{ config.public_key|truncatechars:25 }}...
{% elif provider == 'paddle' and config.vendor_id %}
{{ config.vendor_id }}
{% elif provider == 'paypal' and config.client_id %}
{{ config.client_id|truncatechars:25 }}...
{% endif %}
{% endif %}
{% endfor %}
{% else %}
🔧

{% trans "No Payment Processors Configured" %}

{% trans "Configure payment processors in your Django settings to start accepting payments." %}

{% endif %}

{% trans "Configuration Generator" %}

{% csrf_token %}
{{ config_form.processor }}

{% trans "Stripe Configuration" %}

{{ config_form.stripe_public_key }}
{{ config_form.stripe_secret_key }}
{{ config_form.stripe_webhook_secret }}

{% trans "Setup Guides" %}

💳 {% trans "Stripe Setup" %}

  1. {% trans "Create account at" %} stripe.com
  2. {% trans "Get API keys from dashboard" %}
  3. {% trans "Add webhook:" %} /subscriptions/webhooks/stripe/
  4. {% trans "Update Django settings" %}

🎣 {% trans "Paddle Setup" %}

  1. {% trans "Create account at" %} paddle.com
  2. {% trans "Get Vendor ID and Auth Code" %}
  3. {% trans "Configure webhook URL" %}
  4. {% trans "Update Django settings" %}

💰 {% trans "PayPal Setup" %}

  1. {% trans "Create developer account" %}
  2. {% trans "Create application" %}
  3. {% trans "Get Client ID and Secret" %}
  4. {% trans "Update Django settings" %}
{% endblock %}