magento 2 Pending Payment Order created in admin cancles itself code example
Example: magento 2 get payment method name
$payment = $order->getPayment()->getMethodInstance()->getTitle();
$payment = $order->getPayment()->getMethodInstance()->getTitle();