Ejemplo n.º 1
0
 /**
  * T
  * @see AbstractRequest::getPreSerializerData
  * @return array
  */
 public function getSerializerData()
 {
     $data = $this->getPreSerializerData();
     $data['merchantID'] = $this->config->getMerchantID();
     $data['storeID'] = $this->config->getStoreID();
     if ($this->config->isSendRequestsWithSalt()) {
         /**
          * Set a salt with varying degrees of cryptographic entirety
          * depending on php environment this code is ran on
          */
         $data['salt'] = $this->getSalt();
     }
     if ($this->macValue) {
         /**
          * Set the mac on the serializer
          */
         $data['mac'] = $this->macValue;
     }
     return $data;
 }