Scenario description: My company's website has been developed before to support PayPal payment, of course, this was developed by other colleagues. Some time ago, the supervisor asked me to develop support for PayPal payment in another scenario, and I spent some time looking at the PayPal code, and then tried to write it, although there was not much code, I finished it quickly. However, the next problem I encountered was really troublesome, and when debugging in sandbox mode, I kept getting exceptions: Request aborted: Failed to create an SSL/TLS secure channel. When I encountered this problem, I also went to Baidu or Google, tried many methods, but still couldn't solve this problem, it took a few days, and now I think about it and I'm drunk, but the development is to keep trying. Finally found the solution on github,https://github.com/paypal/TLS-update/tree/master/net/TlsCheck, I hope it can help friends in need. Just add this code before creating the request address:
|