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(
|
$(".checkout-button-row .btn-primary").click(
|
||||||
function (e) {
|
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() == "") {
|
&& $("#stripe_token").val() == "") {
|
||||||
pretixstripe.start();
|
pretixstripe.start();
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|||||||
@@ -151,9 +151,8 @@ $(function () {
|
|||||||
|
|
||||||
$('.stripe-container').closest("form").submit(
|
$('.stripe-container').closest("form").submit(
|
||||||
function () {
|
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() == "") {
|
&& $("#stripe_token").val() == "") {
|
||||||
console.log("foo");
|
|
||||||
if ($("#stripe-checkout").length) {
|
if ($("#stripe-checkout").length) {
|
||||||
pretixstripe.show_checkout();
|
pretixstripe.show_checkout();
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user