Skip to content

Commit 44924f2

Browse files
committed
Force TLS 1.2
1 parent 20b62f0 commit 44924f2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/PaypalIPN.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ function verifyIPN()
103103
curl_setopt($ch, CURLOPT_POST, 1);
104104
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
105105
curl_setopt($ch, CURLOPT_POSTFIELDS, $req);
106+
curl_setopt($ch, CURLOPT_SSLVERSION, 4);
106107
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1);
107108
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
108109
if ($this->use_local_certs)

0 commit comments

Comments
 (0)