Skip to content

Commit

Permalink
Merge pull request #1 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 2dbc07c + 37d8313 commit 8bca61f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 29 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## v1.3.1
* Remove CURLOPT_CAINFO - path to Certificate Authority (CA) bundle
* Remove paymill.crt
* Change user agent info to "Paymill-JTL/1.3.1"

## v1.3.0
* add paymill refund via wawi "storno"

Expand Down
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-JTL/1.3.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;
}

}
}

This file was deleted.

0 comments on commit 8bca61f

Please sign in to comment.