diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..1ad751f --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,9 @@ +## 1.0.1 - 2017-05-23 + +* Remove CURLOPT_CAINFO - path to Certificate Authority (CA) bundle +* Remove paymill.crt +* Change user agent info to "Paymill-Magento-2/1.0.1" + +## 1.0.0 - 2017-02-02 + +* Version 1.0.0 diff --git a/app/code/Paymill/Paymill/Services/Apiclient/Curl.php b/app/code/Paymill/Paymill/Services/Apiclient/Curl.php index 6b365f1..d8b824b 100644 --- a/app/code/Paymill/Paymill/Services/Apiclient/Curl.php +++ b/app/code/Paymill/Paymill/Services/Apiclient/Curl.php @@ -31,7 +31,7 @@ class Curl implements \Paymill\Paymill\Services\Apiclient\InterfaceCurl */ private $_apiUrl = '/'; - const USER_AGENT = 'Paymill-php/0.0.2'; + const USER_AGENT = 'Paymill-Magento-2/1.0.1'; public static $lastRawResponse; public static $lastRawCurlOptions; @@ -112,9 +112,8 @@ 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 => $logDir . '/code/Paymill/Paymill/Services/Apiclient/paymill.crt', - ); + CURLOPT_SSL_VERIFYPEER => true + ); if (\Paymill\Paymill\Services\Apiclient\InterfaceCurl::HTTP_GET === $method) { if (0 !== count($params)) { diff --git a/app/code/Paymill/Paymill/Services/Apiclient/paymill.crt b/app/code/Paymill/Paymill/Services/Apiclient/paymill.crt deleted file mode 100644 index 20585f1..0000000 --- a/app/code/Paymill/Paymill/Services/Apiclient/paymill.crt +++ /dev/null @@ -1,25 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIENjCCAx6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBvMQswCQYDVQQGEwJTRTEU -MBIGA1UEChMLQWRkVHJ1c3QgQUIxJjAkBgNVBAsTHU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