public function init() { $this->logId = time(); $key = $this->config->get('paymillcreditcard_privatekey'); $this->paymillProcessor = new Services_Paymill_PaymentProcessor($key, $this->apiEndpoint); $this->paymillPreauth = new Services_Paymill_Preauthorizations($key, $this->apiEndpoint); $this->paymillTransaction = new Services_Paymill_Transactions($key, $this->apiEndpoint); $this->paymillRefund = new Services_Paymill_Refunds($key, $this->apiEndpoint); $metadata = new metadata(); $source = $metadata->getVersion() . "_opencart_" . VERSION; $this->paymillProcessor->setSource($source); $this->paymillProcessor->setLogger($this); }
public function getVersion() { $metadata = new metadata(); return $metadata->getVersion(); }