From 42b043ad99f3c4993df10551dc5f88ce433d6323 Mon Sep 17 00:00:00 2001 From: Changaco Date: Thu, 12 Sep 2024 13:15:53 +0200 Subject: [PATCH] fix JavaScript error in Stripe payment page --- js/stripe.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/stripe.js b/js/stripe.js index d472aa695..87f99c02b 100644 --- a/js/stripe.js +++ b/js/stripe.js @@ -35,7 +35,7 @@ Liberapay.stripe_form_init = function($form) { if (window.Stripe) { stripe = Stripe($form.data('stripe-pk')); var elements = stripe.elements({ - onBehalfOf: $form.data('stripe-on-behalf-of'), + onBehalfOf: $form.data('stripe-on-behalf-of') || undefined, }); var element_type = $container.data('type'); var options = {style: {