How can i mimic the traditional way of posting data in AngularJS, where the URL is loaded with the paramters sent. Here is my Controller below :
$scope.CallWebPay = function(){
console.log($scope.pay);
$scope.pay.hash = CryptoJS.SHA512($scope.pay);
var paramObj = {
product_id : $scope.pay.product_id,
pay_item_id : $scope.pay.pay_item_id,
amount : $scope.pay.amount,
currency : $scope.pay.currency,
site_redirect_url : $scope.pay.site_redirect_url,
txn_ref : $scope.pay.txn_ref,
cust_id : $scope.pay.cust_id,
hash : $scope.pay.hash
};
$http.post('https://www.testpayment.com/test_paydirect/pay', paramObj ).
then(function(response) {
}, function(response) {
});
}
Expect Behaivour Making a POST Request to that link should cause the page at the endpoint to redirect to another page, but right now nothing is happening.