From cd84ebd4c5da6f61e959636ac55b4d696508d592 Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Tue, 10 May 2016 16:57:12 +0200 Subject: [PATCH] v3 payments: fix client errors for Stripe --- website/public/js/services/paymentServices.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/public/js/services/paymentServices.js b/website/public/js/services/paymentServices.js index c5bfeae262..fad384befc 100644 --- a/website/public/js/services/paymentServices.js +++ b/website/public/js/services/paymentServices.js @@ -37,7 +37,7 @@ function($rootScope, User, $http, Content) { $http.post(url, res).success(function() { window.location.reload(true); }).error(function(res) { - alert(res.err); + alert(res.message); }); } }); @@ -55,7 +55,7 @@ function($rootScope, User, $http, Content) { $http.post(url, data).success(function() { window.location.reload(true); }).error(function(data) { - alert(data.err); + alert(data.message); }); } });