The request was aborted: Could not create SSL/TLS secure channel sandbox account

后端 未结 4 1258
迷失自我
迷失自我 2020-12-03 06:24

It was working well before a week but now it shows following error. I have tried the following things but of no use.

ServicePointManager.Expect100Continue =         


        
4条回答
  •  無奈伤痛
    2020-12-03 07:24

    Add the following code to your global.asax or before calling the (HttpWebRequest)WebRequest.Create(url);

    protected void Application_Start()
    {
        ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
        // ...
    }
    

    This was caused because PayPal are changing their encryption to TLS instead of SSL. This has already been updated on the Sandbox environments but not yet on the live.

    Read more: https://devblog.paypal.com/upcoming-security-changes-notice/

提交回复
热议问题