diff --git a/js/civicrm_stripe.js b/js/civicrm_stripe.js index 44d0ba565b658325d940ee006ab63931d0e16022..4fa078dcd8eb3bb18e81908ba748a2f1f2a78918 100644 --- a/js/civicrm_stripe.js +++ b/js/civicrm_stripe.js @@ -212,10 +212,12 @@ }) .done(function (result) { // Handle server response (see Step 3) + swalClose(); handleServerResponse(result); }) - .always(function() { + .fail(function() { swalClose(); + displayError('Unknown error', true); }); } }