I have a function that does a redirect:
vm.pagarUpload = function() {
$http({
method: 'POST',
url: API.url + 'app/service.php?t=pagarUpload',
data: {
nome: vm.nomeUpload,
email: vm.emailUpload,
cpf: vm.cpfUpload
}
}).then(function successCallback(response) {
console.log('redirecionando...');
window.location.href = "https://minhaurl.com/payment.html?code=" + response.data;
});
}