Skip to content

Commit

Permalink
Merge pull request #6 from tschelabaumann/tschelabaumann-remove-ca-info
Browse files Browse the repository at this point in the history
Remove ca info
  • Loading branch information
mschindler83 authored May 23, 2017
2 parents b143ed7 + ad2a45a commit 9f4b08c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 29 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
7 changes: 3 additions & 4 deletions app/code/Paymill/Paymill/Services/Apiclient/Curl.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)) {
Expand Down
25 changes: 0 additions & 25 deletions app/code/Paymill/Paymill/Services/Apiclient/paymill.crt

This file was deleted.

0 comments on commit 9f4b08c

Please sign in to comment.