public function __construct(HttpClient $httpClient, Gateway $gateway, array $params, $installments = null)
 {
     $this->setInstallments($params, $installments);
     parent::__construct($httpClient, $gateway, 'purchase', $this->params);
     $this->uri = '/api';
     $this->httpClient = $httpClient;
     $this->send();
 }
 public function __construct(HttpClient $httpClient, Gateway $gateway, array $params)
 {
     parent::__construct($httpClient, $gateway, 'capture', $params);
     $this->uri = '/transactions/' . $params['order-number'] . '/capture.xml';
     $this->httpClient = $httpClient;
     $this->params = $params;
     $this->send();
 }