6 declare(strict_types=1);
24 private static $merchantAccountId =
'merchantAccountId';
34 private $subjectReader;
45 $this->subjectReader = $subjectReader;
51 public function build(array $buildSubject): array
53 $paymentDO = $this->subjectReader->readPayment($buildSubject);
54 $order = $paymentDO->getOrder();
57 $merchantAccountId = $this->config->getMerchantAccountId(
$order->getStoreId());
58 if (!empty($merchantAccountId)) {
59 $result[self::$merchantAccountId] = $merchantAccountId;
build(array $buildSubject)
__construct(Config $config, SubjectReader $subjectReader)