diff --git a/script.js b/script.js index 71cabde..6c822cb 100644 --- a/script.js +++ b/script.js @@ -390,8 +390,10 @@ var taxAmount = $scope.ticketAmnt - $scope.discountAmount console.log("$scope.taxTotal----",taxAmount) $scope.payingAmnt = taxAmount; + console.log("====$scope.payingAmnt====",$scope.payingAmnt) $scope.payingAmnt = $scope.payingAmnt.toFixed() - data.amount = $scope.payingAmnt /100; + data.amount = $scope.payingAmnt; + console.log("data.amount==",data.amount) if($scope.detail != null){ $http({ method: 'POST', @@ -442,6 +444,7 @@ $scope.paymentResponse.amount = data.amount; $scope.paymentResponse.currency = "INR"; $scope.paymentResponse.status = $scope.paymentResult.data.status; + console.log("$scope.paymentResponse.amount=====",$scope.paymentResponse.amount) $http({ method: 'PUT', url: BASE_URL+'/payments/'+$scope.paymentResult.data.id,