mirror of
https://github.com/pretix/pretix.git
synced 2026-05-12 16:24:00 +00:00
Enable stripe when retrying payments
This commit is contained in:
@@ -90,7 +90,7 @@ $(function () {
|
|||||||
if (!$("#stripe_number").length) // Not on the checkout page
|
if (!$("#stripe_number").length) // Not on the checkout page
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if ($("input[name=payment][value=stripe]").is(':checked')) {
|
if ($("input[name=payment][value=stripe]").is(':checked') || $(".payment-redo-form").length) {
|
||||||
pretixstripe.load();
|
pretixstripe.load();
|
||||||
} else {
|
} else {
|
||||||
$("input[name=payment]").change(function() {
|
$("input[name=payment]").change(function() {
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
<form method="post" class="form-horizontal" href="">
|
<form method="post" class="form-horizontal" href="">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<div class="form-horizontal">
|
<div class="form-horizontal payment-redo-form">
|
||||||
{{ form }}
|
{{ form }}
|
||||||
</div>
|
</div>
|
||||||
<div class="row checkout-button-row">
|
<div class="row checkout-button-row">
|
||||||
|
|||||||
Reference in New Issue
Block a user