I have this function (angular) to send information to php page:
public SendData(cart_items:any) {
const jsonContent = new RequestOptions({
headers:new Headers({
'Content-Type': 'application/json'
})
});
let body = JSON.stringify(cart_items);
return this.http.post("xxxxxxxxxx/pay.php", body, jsonContent)
.map(result => {
return result.json();
});
}
how can i get access to data in the page 'pay.php'