Skip to content

Commit

Permalink
adding support for custom cacert.pem file to support barclays certifi…
Browse files Browse the repository at this point in the history
…cate that is not supported in guzzle 3.9
  • Loading branch information
James Nuttall committed Nov 8, 2018
1 parent 0c376e3 commit 5f35b5d
Show file tree
Hide file tree
Showing 3 changed files with 3,940 additions and 1 deletion.
25 changes: 25 additions & 0 deletions src/Omnipay/BarclaysEpdqDl/AbstractGateway.php
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'
)
);
}
}
2 changes: 1 addition & 1 deletion src/Omnipay/BarclaysEpdqDl/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Omnipay\BarclaysEpdqDl;

use Omnipay\Common\AbstractGateway;
use Omnipay\BarclaysEpdqDl\AbstractGateway;
use Omnipay\BarclaysEpdqDl\Message\PurchaseRequest;

/**
Expand Down
Loading

0 comments on commit 5f35b5d

Please sign in to comment.