Please, explain, how can I check if order paid by (credit/debit) card?

I need to check if order paid by card in observer. I know only order id.

1 Answer 1


To get the payment method title by order id

$order = Mage::getModel('sales/order')->load(24999); // your order entity_id

$order = Mage::getModel('sales/order')->loadByIncrementId('10000001'); // increment id

echo $method = $order->getPayment()->getMethodInstance()->getTitle();

now the $method will return payment method title. So you can do your logic with this.


As @Marius comment

$method = $order->getPayment()->getMethodInstance()->getCode();

The payment method code will not change for each store view. So better you could use method code.

  • 3
    I think it's better to check $method = $order->getPayment()->getMethodInstance()->getCode(); since the code never changes but the title can be changed for each store view. Other than that...good stuff.
    – Marius
    Aug 7, 2015 at 7:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.