/** * Return additional information`s transaction_id value of parent transaction model * * @param \Magento\Sales\Model\Order\Payment $payment * @return string */ protected function _getRealParentTransactionId($payment) { $transaction = $payment->getTransaction($payment->getParentTransactionId()); return $transaction->getAdditionalInformation($this->_realTransactionIdKey); }
/** * Return additional information`s transaction_id value of parent transaction model * * @param \Magento\Sales\Model\Order\Payment $payment * @return string */ protected function getRealParentTransactionId($payment) { $transaction = $payment->getTransaction($payment->getParentTransactionId()); return $transaction->getAdditionalInformation(self::REAL_TRANSACTION_ID_KEY); }