Exemplo n.º 1
0
 /**
  * @inheritDoc
  */
 public function enableTestMode()
 {
     $this->isTestRequest = true;
     $this->setSecretKey('002020000000001_KEY1');
     $this->setKeyVersion('1');
     $this->order->enableTestMode();
     return $this;
 }
Exemplo n.º 2
0
 /**
  * Convert the Data string
  *
  * @param string $dataString The Data string provided by OmniKassa
  */
 protected function handleData($dataString)
 {
     $dataArray = explode('|', $dataString);
     $data = array();
     foreach ($dataArray as $d) {
         list($k, $v) = explode('=', $d);
         $data[$k] = $v;
     }
     $this->order = OmniKassaOrder::fromData($data);
     $this->setKeyVersion($data['keyVersion'])->setResponseCode($data['responseCode'])->setTransactionDateTime($data['transactionDateTime']);
 }