How to set order payment transaction id and transaction data for an order?

payment
order-payment
payment-transaction
(Poongudivanan N) #1

Payment order payment transaction id and transaction data update to order payment

How to set order payment transaction id and transaction data for the order ?.like magento 1X transaction raw data adding… ?

Any idea ?

0 Likes

(Dmitry Fedyuk) #2

Use the \Magento\Sales\Model\Order\Payment::setTransactionId() method to set an ID for a transaction and the \Magento\Sales\Model\Order\Payment::setTransactionAdditionalInfo() method to set an additional information to a transaction.

0 Likes

(Poongudivanan N) #3

Thank you.

0 Likes

(Gaurav K1994) #4

could you pls elabrote in detail

0 Likes