Milind Daraniya

How To Get Payment Method Title Of Order In Magento 2

Published June 21st, 2023 1 min read
You can get all the information from order like items, address, payments etc. 

Therefore, the below solution allows the admin to get payment method title of order in Magento 2. Keep in mind the nature of your business and customer insights to decide if you need to add the order payment information in Magento 2 store or not.

Get the payment model from the order, then get the method instance from the payment:

$orderIncrementId=10000005;
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$order = $objectManager->create('Magento\Sales\Model\Order')->loadByIncrementId($orderIncrementId)
​​​​​​​$payment = $order->getPayment();
$method = $payment->getMethodInstance();
$methodTitle = $method->getTitle();

You can get payment method easily using getPayment() Method.

Thanks.