forked from CGM_Public/pretix_original
Fix retrying Stripe checkout payments
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user