Skip to content

Commit

Permalink
Added a way to prevent Stripe checkout from running on submit.
Browse files Browse the repository at this point in the history
  • Loading branch information
cheesegrits committed Nov 14, 2018
1 parent aabebd9 commit 800707f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/fabrik_form/stripe/stripe-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions plugins/fabrik_form/stripe/stripe.js
Expand Up @@ -143,6 +143,10 @@ define(['jquery', 'fab/fabrik'], function (jQuery, Fabrik) {
});

Fabrik.addEvent('fabrik.form.submit.start', function (form, event, btn) {
if (!this.options.useCheckout) {
return;
}

if (!this.options.ccOnFree && this.options.amount == 0)
{
return;
Expand Down

0 comments on commit 800707f

Please sign in to comment.