Skip to content

Commit

Permalink
Merge pull request #9 from tschelabaumann/tschelabaumann-remove-ca-info
Browse files Browse the repository at this point in the history
Remove certificate binding
  • Loading branch information
mschindler83 authored May 23, 2017
2 parents be1d042 + 3cc77d7 commit 9556159
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 30 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#Release Notes

##2.0.3

- Remove CURLOPT_CAINFO - path to Certificate Authority (CA) bundle
- Remove paymill.crt
- Change user agent info to "Paymill-Shopware/2.0.3"

##2.0.2
- Fix checkout with iframe

Expand Down Expand Up @@ -123,4 +129,4 @@
- Added ELV as a payment mean

##1.0.0
- Initial release
- Initial release
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-Shopware/2.0.3';

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 9556159

Please sign in to comment.