Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Let the form render itself

Patryk Zawadzki67f5cb816b14
diff --git a/saleor/order/templates/order/payment/stripe.html b/saleor/order/templates/order/payment/stripe.html
index 6a456646ef..122723acba 100644
--- a/saleor/order/templates/order/payment/stripe.html
+++ b/saleor/order/templates/order/payment/stripe.html
@@ -7,15 +7,6 @@
{% csrf_token %}
{{ form.media }}
{{ form|as_horizontal_form }}
- <script
- src="https://checkout.stripe.com/checkout.js" class="stripe-button"
- data-key="{{ form.stripeToken.field.widget.attrs.data_key }}"
- data-image="{{ STATIC_URL }}img/logo.png"
- data-name="Site Name"
- data-description="{{ form.stripeToken.field.widget.attrs.data_description }}"
- data-amount="{{ form.stripeToken.field.widget.attrs.data_amount }}"
- data-currency="{{ form.stripeToken.field.widget.attrs.data_currency }}">
- </script>
{% if form.errors %}
<a class="btn" href="{% url "order:details" token=payment.order.token %}">{% trans "Change payment method" %}</a>
{% endif %}