diff options
Diffstat (limited to 'addons/payment_stripe/static/src')
| -rw-r--r-- | addons/payment_stripe/static/src/js/payment_form.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/payment_stripe/static/src/js/payment_form.js b/addons/payment_stripe/static/src/js/payment_form.js index 8671e67e4e9..5ed4200a88c 100644 --- a/addons/payment_stripe/static/src/js/payment_form.js +++ b/addons/payment_stripe/static/src/js/payment_form.js @@ -79,6 +79,9 @@ PaymentForm.include({ self.el.submit(); } }).guardedCatch(function (error) { + // We don't want to open the Error dialog since + // we already have a container displaying the error + error.event.preventDefault(); // if the rpc fails, pretty obvious self.enableButton(button); self.displayError( |
