Logging Stripe error

This commit is contained in:
Hillel Coren 2016-09-14 18:54:41 +03:00
parent 1147ee0329
commit 4df68473ee

View File

@ -75,7 +75,8 @@
// and submit // and submit
$form.get(0).submit(); $form.get(0).submit();
} else { } else {
logError(JSON.stringify(response)); $('#js-error-message').html('An error occurred').fadeIn();
logError('STRIPE_ERROR:' + JSON.stringify(response));
} }
} }
}; };