function saveClient()
 {
     if ($this->code === 'paymill_cc') {
         $this->fastCheckout->saveCcIds($_SESSION['customer_id'], $this->paymentProcessor->getClientId(), '');
     }
     if ($this->code === 'paymill_elv') {
         $this->fastCheckout->saveElvIds($_SESSION['customer_id'], $this->paymentProcessor->getClientId(), '');
     }
 }
Exemplo n.º 2
0
 function saveClient()
 {
     if ($this->code === 'paymillCc') {
         $result = $this->fastCheckout->saveCcIds($_SESSION['customer_id'], $this->paymentProcessor->getClientId());
     }
     if ($this->code === 'paymillElv') {
         $result = $this->fastCheckout->saveElvIds($_SESSION['customer_id'], $this->paymentProcessor->getClientId());
     }
     $this->log("Client " . $result ? "" : "not " . "saved.", var_export(array('userId' => $_SESSION['customer_id'], 'clientId' => $this->paymentProcessor->getClientId()), true));
 }