pretix-stripe2/pretix_stripe2/templates/pretixplugins/stripe2/presale_head.html

20 lines
820 B
HTML
Raw Normal View History

2020-09-04 17:56:10 +10:00
{% load static %}
{% load compress %}
{% load i18n %}
{% compress js %}
2020-09-04 17:58:25 +10:00
<script type="text/javascript" src="{% static "pretixplugins/stripe2/pretix-stripe.js" %}"></script>
2020-09-04 17:56:10 +10:00
{% endcompress %}
{% compress css %}
2020-09-04 17:58:25 +10:00
<link type="text/css" rel="stylesheet" href="{% static "pretixplugins/stripe2/pretix-stripe.css" %}">
2020-09-04 17:56:10 +10:00
{% endcompress %}
{% if testmode %}
2020-09-04 17:58:25 +10:00
<script type="text/plain" id="stripe_pubkey">{{ settings.test_publishable_key }}</script>
2020-09-04 17:56:10 +10:00
{% 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>