How to get payment method title of an order in magento 2?

Get Payment Method title from the Order details in Magento 2 by order repository interface.

Load an Order by API OrderRepositoryInterface with Order id, Get Payment Object, fetch Payment related stuff from the Payment Data.

You can get payment method title of an order by below code snippets,

One Reply to “How to get payment method title of an order in magento 2?”

Leave a Reply