Skip to content

Commit

Permalink
fix the JS function stripe_next_action
Browse files Browse the repository at this point in the history
  • Loading branch information
Changaco committed Oct 13, 2024
1 parent 904a886 commit d752ef7
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions js/stripe.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,14 @@ Liberapay.stripe_form_init = function($form) {
}
};
$form.attr('action', '');
};

Liberapay.stripe_next_action = function ($next_action) {
stripe.handleCardAction($next_action.data('client_secret')).then(function (result) {
if (result.error) {
$next_action.addClass('alert alert-danger').text(result.error.message);
} else {
window.location.reload();
}
})
Liberapay.stripe_next_action = function ($next_action) {
stripe.handleCardAction($next_action.data('client_secret')).then(function (result) {
if (result.error) {
$next_action.addClass('alert alert-danger').text(result.error.message);
} else {
window.location.reload();
}
})
};
};

0 comments on commit d752ef7

Please sign in to comment.