Skip to content

Commit

Permalink
Remove certificate authority info
Browse files Browse the repository at this point in the history
  • Loading branch information
tschelabaumann authored May 23, 2017
1 parent c96fca5 commit d1c9965
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions paymill/lib/Services/Paymill/Apiclient/Curl.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Services_Paymill_Apiclient_Curl implements Services_Paymill_Apiclient_Inte
*/
private $_apiUrl = '/';

const USER_AGENT = 'Paymill-php/0.0.2';
const USER_AGENT = 'Paymill-Opencart/1.6.1';

public static $lastRawResponse;
public static $lastRawCurlOptions;
Expand Down Expand Up @@ -109,8 +109,7 @@ protected function _requestApi($action = '', $params = array(), $method = 'POST'
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => $method,
CURLOPT_USERAGENT => self::USER_AGENT,
CURLOPT_SSL_VERIFYPEER => true,
CURLOPT_CAINFO => realpath(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'paymill.crt',
CURLOPT_SSL_VERIFYPEER => true
);

if (Services_Paymill_Apiclient_Interface::HTTP_GET === $method) {
Expand Down Expand Up @@ -160,4 +159,4 @@ public function getResponse()
return $this->_responseArray;
}

}
}

0 comments on commit d1c9965

Please sign in to comment.