We can get order payment information data by order id using below code snippet.
$orderid = 2; $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $order = $objectManager->create('Magento\Sales\Api\Data\OrderInterface')->load($orderid); //fetch whole payment information print_r($order->getPayment()->getData()); //Or fetch specific payment information echo $order->getPayment()->getAmountPaid().' '; echo $order->getPayment()->getMethod().' '; echo $order->getPayment()->getAdditionalInformation('method_title'). ' ';
ConversionConversion EmoticonEmoticon