我正在使用NopCommerce的PayPalStandard插件。當我通過paypal標準插件在Paypal成功付款後下訂單&付款時,它會重定向到商家網站。當時它給錯誤:請求已中止:無法創建SSL/TLS安全通道.System.Net.WebException
The request was aborted: Could not create SSL/TLS secure channel.
而且我使用的測試貝寶的沙盒帳戶。
它拋出錯誤從這一行:
var sw = new StreamWriter(req.GetRequestStream()
這裏是下面的代碼:
var req = (HttpWebRequest)WebRequest.Create(GetPaypalUrl());
req.Method = "POST";
req.ContentType = "application/x-www-form-urlencoded";
req.ProtocolVersion = HttpVersion.Version10;
string formContent = string.Format("cmd=_notify-synch&at={0}&tx={1}", _paypalStandardPaymentSettings.PdtToken, tx);
req.ContentLength = formContent.Length;
using (var sw = new StreamWriter(req.GetRequestStream(), Encoding.ASCII))
sw.Write(formContent);
我開始看到這種情況發生在大約一天前。也許與https://www.sandbox.paypal.com/的證書有關的問題? – bustrofedon
9-10個月前,它不會引發任何沙箱錯誤。是沙箱問題嗎? – chitra
此代碼也可以成功使用PayPal帳戶。它只發生在沙箱帳戶。所以這是沙箱帳戶的問題? – chitra