YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

ipn invalied Options
komathipriya
#1 Posted : Thursday, April 15, 2010 7:21:00 AM
Rank: Starting Member

Groups: Registered

Joined: 4/15/2010
Posts: 1
Location: chennai
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
Sponsor  
 
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFVision Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.116 seconds.