Zend certified PHP/Magento developer

I have to get payment method from checkout session [closed]

I work on extension name ” Order Details”.

$customer = $this->order->loadByIncrementId()->getCustomerId()->getPayment();
    $payment = $customer->getPayment();
    $method = $payment->getMethodInstance();
    $methodTitle = $method->getTitle();
    return $methodTitle;

How I can access the Cash on Delivery method and render on checkout/success/page.