Get order payment method info in magento?.

<?php

$orderId = ‘10000015’;

$order = Mage::getModel(‘sales/order’)->load($orderId);

// For getting Order Payment Info.


echo ‘<pre>';

      print_r($order->getPayment());

//  Show current order payment instance.

 print_r($order->getPayment()->getMethodInstance());

//  Show current order payment method instance.

 print_r($order->getPayment()->getMethodInstance()->getTitle());

//  Show current order payment Title only.

echo ‘</pre>';

?>

 

Leave a Reply