for does checkout
trying use $http on angular