forked from CGM_Public/pretix_original
Stripe: Support for pretix.eu
This commit is contained in:
@@ -157,6 +157,9 @@ $(function () {
|
|||||||
|
|
||||||
$('.stripe-container').closest("form").submit(
|
$('.stripe-container').closest("form").submit(
|
||||||
function () {
|
function () {
|
||||||
|
if ($("input[name=card_new]").length && !$("input[name=card_new]").prop('checked')) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
if (($("input[name=payment][value=stripe]").prop('checked') || $("input[name=payment][type=radio]").length === 0)
|
if (($("input[name=payment][value=stripe]").prop('checked') || $("input[name=payment][type=radio]").length === 0)
|
||||||
&& $("#stripe_token").val() == "") {
|
&& $("#stripe_token").val() == "") {
|
||||||
if ($("#stripe-checkout").length) {
|
if ($("#stripe-checkout").length) {
|
||||||
|
|||||||
Reference in New Issue
Block a user