Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
 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();
 }