0

このペイパル ドキュメントによると、IPN を使用しているときにメッセージをペイパルに送り返した後、次のように返されます。

PayPal will then send one single-word message, VERIFIED, if the message is valid; otherwise, it will send another single-word message, INVALID.

ただし、支払いが成功した場合でも、応答が空白になることがあることに気付きました。他の誰かがこれに気づきましたか?

確認する私のコードは次のとおりです:-

var req = (HttpWebRequest)WebRequest.Create(Settings.PayPalPaymentUrl);

//Set values for the request back
req.Method = "POST";
req.ContentType = "application/x-www-form-urlencoded";
byte[] param = Request.BinaryRead(Request.ContentLength);
strRequest = Encoding.ASCII.GetString(param);
strRequest += "&cmd=_notify-validate";
req.ContentLength = strRequest.Length;

//Send the request to PayPal and get the response
var streamOut = new StreamWriter(req.GetRequestStream(), Encoding.ASCII);
streamOut.Write(strRequest);
streamOut.Close();
var streamIn = new StreamReader(req.GetResponse().GetResponseStream());
strResponse = streamIn.ReadToEnd();
streamIn.Close();

ケースの 99% は戻ってきますVERIFIEDが、時々空のメッセージが表示されます。

4

1 に答える 1

1

誰かがページに直接アクセスすると、PayPal からヒットするのではなく、空白の応答が返されますが、これは何が起こっているのでしょうか?

于 2013-05-23T15:27:49.520 に答える