Lyconal Best
Lyconal Best

Reputation: 112

Magento: How to check which payment method has been selected?

I need to check, if 'paypal' is the selected payment method before the review order stage, as if it is, I need to fire some code.

What's the best way to find out the 'selected' payment method, once it has been saved?

Upvotes: 0

Views: 3320

Answers (1)

Lyconal Best
Lyconal Best

Reputation: 112

The answer is:

Mage::getSingleton('checkout/session')->getQuote()->getPayment()->getMethodInstance()->getTitle();

Upvotes: 2

Related Questions