Skip to content

Commit

Permalink
fix JavaScript error in Stripe payment page
Browse files Browse the repository at this point in the history
  • Loading branch information
Changaco committed Sep 12, 2024
1 parent 84cd901 commit 42b043a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/stripe.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 42b043a

Please sign in to comment.