B-219 Sec-55 Noida, India
+918010221733

Get creditcard type in Magento

$order_id = 100; //order id goes here
$_order = Mage::getModel(‘sales/order’)->load($order_id);     
$_cctype = ”;
if(!empty($_order))
{         
    $_cctype = $_order->getPayment()->getCcTypeName();
}
echo $_cctype;
(Visited 23 times, 1 visits today)

Leave a reply