According to PagSeguro, I need to make a GET and then receive the data that comes in XML format Documentation .
I'm screwed in this part:
To consult a transaction notification, you must make a the Notification Query API, informing the notification. The figure below illustrates a call to this API, which uses the HTTP protocol and the GET method (the lines were broken for easy reading).
Then I did the following:
string pagina = string.Format("https://ws.pagseguro.uol.com.br/v3/transactions/notifications/{0}?email={1}&token={2}",notificationCode, email, token);
Searching I came to this code to be doing a GET on the page:
System.Net.HttpWebRequest req = (System.Net.HttpWebRequest)System.Net.WebRequest.Create(pagina);
req.Method = "POST";
req.ContentType = "application/x-www-form-urlencoded";
But I do not know how to proceed.
What I did, right? And now how can I be receiving the Pagseguro data?