Skip to content

Commit

Permalink
Merge pull request #6 from paymill/remove-ca-binding
Browse files Browse the repository at this point in the history
Remove ca binding
  • Loading branch information
mschindler83 authored Jun 27, 2017
2 parents d327a89 + 239b10d commit 5f3ca44
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 31 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,10 @@ The first button uses the payment.php file to create transactions.
The second button uses the subscription.php file to create subscriptions.

##Futher Information
- https://www.paymill.com/en-gb/documentation-3/add-ons/paybutton/
- https://www.paymill.com/en-gb/documentation-3/add-ons/paybutton/

## Changelog

### 1.2.0

* Remove CA binding
3 changes: 1 addition & 2 deletions payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,8 @@ function requestApi($action = '', $params = array(), $privateApiKey)
CURLOPT_URL => "https://api.paymill.com/v2/" . $action,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_USERAGENT => 'Paymill-php/0.0.2',
CURLOPT_USERAGENT => 'paymill-paybutton-example/1.2.0',
CURLOPT_SSL_VERIFYPEER => true,
CURLOPT_CAINFO => realpath(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'paymill.crt',
);

$curlOpts[CURLOPT_POSTFIELDS] = http_build_query($params, null, '&');
Expand Down
25 changes: 0 additions & 25 deletions paymill.crt

This file was deleted.

5 changes: 2 additions & 3 deletions subscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,8 @@ function requestApi($action = '', $params = array(), $privateApiKey)
CURLOPT_URL => "https://api.paymill.com/v2/" . $action,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_USERAGENT => 'Paymill-php/0.0.2',
CURLOPT_SSL_VERIFYPEER => true,
CURLOPT_CAINFO => realpath(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'paymill.crt',
CURLOPT_USERAGENT => 'paymill-paybutton-example/1.2.0',
CURLOPT_SSL_VERIFYPEER => true
);

$curlOpts[CURLOPT_POSTFIELDS] = http_build_query($params, null, '&');
Expand Down

0 comments on commit 5f3ca44

Please sign in to comment.