config = $config; $this->subjectReader = $subjectReader; } /** * @inheritdoc */ public function build(array $buildSubject): array { $paymentDO = $this->subjectReader->readPayment($buildSubject); $order = $paymentDO->getOrder(); $result = []; $merchantAccountId = $this->config->getMerchantAccountId($order->getStoreId()); if (!empty($merchantAccountId)) { $result[self::$merchantAccountId] = $merchantAccountId; } return $result; } }