Skip to content
This repository has been archived by the owner on Jun 23, 2021. It is now read-only.

Commit

Permalink
Merge pull request #7 from aligent/tls-1.2
Browse files Browse the repository at this point in the history
Set SSL version to TLS-1.2 for the IPN postback.
  • Loading branch information
aligentjim committed Jan 31, 2016
2 parents 1a83cfa + 72174a6 commit 99f3b0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/local/Aligent/Paypal/Model/Ipn.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ protected function _postBack(Zend_Http_Client_Adapter_Interface $httpAdapter)
$sReq = substr($sReq, 1);
$this->_debugData['postback'] = $sReq;
$this->_debugData['postback_to'] = $this->_config->getPaypalUrl();

$httpAdapter->addOption(CURLOPT_SSLVERSION,6); //6 == CURL_SSLVERSION_TLSv1_2
$httpAdapter->write(Zend_Http_Client::POST, $this->_config->getPaypalUrl(), '1.1', array(), $sReq);
try {
$response = $httpAdapter->read();
Expand Down

0 comments on commit 99f3b0e

Please sign in to comment.