How to integrate ccavenue in ionic

How to Implement ccavenue in ionic

$scope.data = { orderId: 1, amount: 1,};
$scope.ref = null; $scope.getStateSecondWindow = function() { $scope.ref.executeScript( {code: "localStorage.getItem('isCloseSelf')"}, function(data) { if (data == 'yes') { $scope.ref.close(); } } ); } $scope.onSubmit = function(){ $scope.ref = window.open(CONFIG.BASE_URL+'getRSA.php?orderId=' + $scope.data.orderId + '&amount=' + $scope.data.amount,'_blank','location=no'); $scope.ref.addEventListener('loadstart', function(event) { }); $scope.ref.addEventListener('loadstop', function(event) { setInterval($scope.getStateSecondWindow, 5000); }); $scope.ref.addEventListener('exit', function(event) { }); }

when i run the function onSubmit it gives an Error
Error Encountered. ERROR!!! application request is not present.

Please help