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

前端 未结 2 939
眼角桃花
眼角桃花 2021-02-10 02:31

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:35

    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;
    

提交回复
热议问题