Fix so that credit card issues are displayed to the user

This commit is contained in:
Joseph Schorr 2013-11-19 17:06:17 -05:00
parent c7355f5509
commit b0ac7883e3
6 changed files with 99 additions and 21 deletions

View file

@ -1008,7 +1008,10 @@ function NewRepoCtrl($scope, $location, $http, $timeout, UserService, Restangula
'opened': function() { $scope.planChanging = true; },
'closed': function() { $scope.planChanging = false; },
'success': subscribedToPlan,
'failure': function() { $('#couldnotsubscribeModal').modal(); $scope.planChanging = false; }
'failure': function(resp) {
$('#couldnotsubscribeModal').modal();
$scope.planChanging = false;
}
};
PlanService.changePlan($scope, null, $scope.planRequired.stripeId, callbacks);