IPN Variables

DieselDave
Contributor
Contributor

When I return the request to paypal from the handler I always get invalid. When I check the length of the request it is 21 - which is the length of the

cmd=_notify-validate

So, I am guessing that I am not sending the correct data back to Paypal to be verified, How do you know what the variables are that you are to return? Are they  generated by Paypal, or am I supposed to set them in the form that the user submits? There  are no syntax errors when it goes to the listener, it just never succeeds. I am using a generic script for C#, and I assumed that the code - was parsing the variables but I guess not - Or there are none to capture.

------------------------------------------

string

strRequest = Encoding.ASCII.GetString(param);

 

string ipnPost = strRequest;

strRequest +=

"&cmd=_notify-validate";

----------------------------------------------------

StreamWriter

streamOut = newStreamWriter(req.GetRequestStream(),

System.Text.

Encoding.ASCII);

 

 

 

streamOut.Write(strRequest);

streamOut.Close();

StreamReader streamIn = newStreamReader(req.GetResponse().GetResponseStream());

 

stringstrResponse = streamIn.ReadToEnd();

streamIn.Close();

Login to Me Too
1 REPLY 1

Misty11
Advisor
Advisor

Hello DieselDave,

 

Welcome to the Community Robot wink.

 

These all are great questions! There may be some useful information specific to IPN questions in the PayPal Developer Forum. That is where discussions about customized solutions take place, and the people there are in the best position to offer you suggestions. I wish you luck.

 

 

Smiley HappyMisty



Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.