hi,
i my project i used sand box account for online transfer, to get the ipn value for the verification of the payment,
i used the following codes for sending request, and getting responce,
the value i'm getting is alwaya
// Create the request back
WebRequest request = WebRequest.Create("https://www.sandbox.paypal.com/cgi-bin/webscr");
// Set values for the request back
request.Method = "POST";
request.ContentType = "application/x-www-form-urlencoded";
string obj2 = strFormValues + "&cmd=_notify-validate";
request.ContentLength = obj2.Length;
Response.Write(request);
// Write the request back IPN strings
StreamWriter writer = new StreamWriter(request.GetRequestStream(), Encoding.ASCII);
writer.Write(RuntimeHelpers.GetObjectValue(obj2));
writer.Close();
//send the request, read the response
WebResponse response = request.GetResponse();
Stream responseStream = response.GetResponseStream();
Encoding encoding = Encoding.GetEncoding("utf-8");
StreamReader reader = new StreamReader(responseStream, encoding);
// Reads 256 characters at a time.
char[] buffer = new char[0x101];
int length = reader.Read(buffer, 0, 0x100);
the value in the above buffer is always Invalied..
and also ipn status is failed but the transaction is completed.
tell me some solution to solve this problem
Regards
Priya