-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding support for custom cacert.pem file to support barclays certifi…
…cate that is not supported in guzzle 3.9
- Loading branch information
James Nuttall
committed
Nov 8, 2018
1 parent
0c376e3
commit 5f35b5d
Showing
3 changed files
with
3,940 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
namespace Omnipay\BarclaysEpdqDl; | ||
|
||
use Guzzle\Http\Client as HttpClient; | ||
use Omnipay\Common\AbstractGateway AS OmnipayAbstractGateway; | ||
|
||
abstract class AbstractGateway extends OmnipayAbstractGateway | ||
{ | ||
/** | ||
* Get the global default HTTP client. | ||
* | ||
* @return HttpClient | ||
*/ | ||
protected function getDefaultHttpClient() | ||
{ | ||
return new HttpClient( | ||
'', | ||
array( | ||
'curl.options' => array(CURLOPT_CONNECTTIMEOUT => 60), | ||
'ssl.certificate_authority' => __DIR__ . '/Resources/cacert.pem' | ||
) | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.