pretix-stripe2/pretix_stripe2/templates/pretixplugins/stripe2/presale_head.html
2020-09-04 17:58:25 +10:00

20 lines
820 B
HTML

{% load static %}
{% load compress %}
{% load i18n %}
{% compress js %}
<script type="text/javascript" src="{% static "pretixplugins/stripe2/pretix-stripe.js" %}"></script>
{% endcompress %}
{% compress css %}
<link type="text/css" rel="stylesheet" href="{% static "pretixplugins/stripe2/pretix-stripe.css" %}">
{% endcompress %}
{% if testmode %}
<script type="text/plain" id="stripe_pubkey">{{ settings.test_publishable_key }}</script>
{% else %}
<script type="text/plain" id="stripe_pubkey">{{ settings.publishable_key }}</script>
{% endif %}
{% if settings.connect_user_id %}
<script type="text/plain" id="stripe_connectedAccountId">{{ settings.connect_user_id }}</script>
{% endif %}
<script type="text/plain" id="stripe_merchantcountry">{{ settings.merchant_country|default:"" }}</script>