cagartner
10/13/2016 - 6:49 PM

Create payment info block on success page in magento

Create payment info block on success page in magento

<?php

$order = Mage::getSingleton('sales/order'); 
// 1 - Get payment method instance
$paymentMethod = $order->getPayment()->getMethodInstance();

?>
<!-- ...  -->

<!-- Create block of payment info.  -->
<?php echo $this->getLayout()->createBlock($paymentMethod->getInfoBlockType())->setData('info', $order->getPayment())->toHtml() ?>

<!-- ...  -->