C#集成paypal支付例子
//Postbacktoeithersandboxorlive
stringstrSandbox="https://www.sandbox.paypal.com/cgi-bin/webscr";
stringstrLive="https://www.paypal.com/cgi-bin/webscr";
HttpWebRequestreq=(HttpWebRequest)WebRequest.Create(strSandbox);
//Setvaluesfortherequestback
req.Method="POST";
req.ContentType="application/x-www-form-urlencoded";
byte[]param=Request.BinaryRead(HttpContext.Current.Request.ContentLength);
stringstrRequest=Encoding.ASCII.GetString(param);
stringipnPost=strRequest;
strRequest+="&cmd=_notify-validate";