Magento 2 comes with a variety of payment options that may be configured in your store to accept safe online payments from clients.Alternatively, you can develop a payment mechanism in Magento 2 to meet your specific business needs.
However, when utilizing such unique payment methods, it is occasionally necessary to obtain additional payment-related information, such as the transaction ID, from the order in Magento 2.
Despite the fact that you are utilizing customized Magento 2 payment gateway integration extensions, you might need to get payment-related additional information from the order in Magento 2.
For Method to Get Payment Related Additional Information From Order in Magento 2, Visit :
https://meetanshi.com/blog/get-payment-related-additional-information-from-order-in-magento-2/