Fix retrying Stripe checkout payments

This commit is contained in:
Raphael Michel
2017-11-11 22:38:49 +01:00
parent 8baa800e30
commit 01585877d7
2 changed files with 2 additions and 3 deletions

View File

@@ -64,7 +64,7 @@ $(function () {
$(".checkout-button-row .btn-primary").click(
function (e) {
if (($("input[name=payment][value=stripe]").prop('checked') || $("input[name=payment]").length === 0)
if (($("input[name=payment][value=stripe]").prop('checked') || $("input[type=checkbox][name=payment]").length === 0)
&& $("#stripe_token").val() == "") {
pretixstripe.start();
e.preventDefault();

View File

@@ -151,9 +151,8 @@ $(function () {
$('.stripe-container').closest("form").submit(
function () {
if (($("input[name=payment][value=stripe]").prop('checked') || $("input[name=payment]").length === 0)
if (($("input[name=payment][value=stripe]").prop('checked') || $("input[name=payment][type=checkbox]").length === 0)
&& $("#stripe_token").val() == "") {
console.log("foo");
if ($("#stripe-checkout").length) {
pretixstripe.show_checkout();
} else {