subjectReader = $subjectReader; $this->config = $config; } /** * Adds authentication information to the request * * @param array $buildSubject * @return array */ public function build(array $buildSubject): array { $storeId = $this->subjectReader->readStoreId($buildSubject); return [ 'merchantAuthentication' => [ 'name' => $this->config->getLoginId($storeId), 'transactionKey' => $this->config->getTransactionKey($storeId) ] ]; } }