Exemplo n.º 1
0
 /**
  * @param ClientInterface $httpClient
  * @param HttpRequest $httpRequest
  */
 public function __construct(ClientInterface $httpClient = null, HttpRequest $httpRequest = null)
 {
     parent::__construct($httpClient, $httpRequest);
     $this->setCurrency('USD');
     $this->setTestMode(false);
     $this->setLang('en');
 }
Exemplo n.º 2
0
 public function __construct(ClientInterface $httpClient = null, HttpRequest $httpRequest = null)
 {
     parent::__construct($httpClient, $httpRequest);
     $this->httpClient->getEventDispatcher()->addListener('request.error', function ($event) {
         if ($event['response']->isClientError()) {
             $event->stopPropagation();
         }
     });
 }
Exemplo n.º 3
0
 /**
  * Create a new gateway instance
  *
  * @param ClientInterface $httpClient  A Guzzle client to make API calls with
  * @param HttpRequest     $httpRequest A Symfony HTTP request object
  * @param Braintree_Gateway $braintree The Braintree gateway
  */
 public function __construct(ClientInterface $httpClient = null, HttpRequest $httpRequest = null, Braintree_Gateway $braintree = null)
 {
     $this->braintree = $braintree ?: Braintree_Configuration::gateway();
     parent::__construct($httpClient, $httpRequest);
 }
 public function __construct($soapClient = null, ClientInterface $httpClient = null, Request $httpRequest = null)
 {
     $this->soapClient = $soapClient;
     parent::__construct($httpClient, $httpRequest);
 }
 /**
  * Create a new gateway instance
  *
  * @param ClientInterface $httpClient  A Guzzle client to make API calls with
  * @param HttpRequest     $httpRequest A Symfony HTTP request object
  * @param \SoapClient     $soapClient
  */
 public function __construct(ClientInterface $httpClient = null, HttpRequest $httpRequest = null, \SoapClient $soapClient = null)
 {
     parent::__construct($httpClient, $httpRequest);
     $this->soapClient = $soapClient;
 }