The request was aborted: Could not create SSL/TLS secure channel.System.Net.WebException

前端 未结 2 1620
暗喜
暗喜 2021-02-10 02:43

I am using PayPalStandard plugin of NopCommerce. When I placed the order & make payment with paypalstandard plugin after successful payment on paypal, it redirects to mercha

2条回答
  •  情深已故
    2021-02-10 03:19

    I had the same issue connecting to sandbox(nvp), everything was fine then yesterday the message "The request was aborted: Could not create SSL/TLS secure channel." appeared.

    I believe PayPal updated their endpoints on 19/20 January 2016 to use TSL 1.2 and HTTP 1.1.

    To resolve this, for .NET 4.5 and above add the following line of code before calling WebRequest.Create().

    ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
    

提交回复
热议问题