I need to know observer after payment method select in magento.
Basically I need to check some attribute value in added cart product after payment method is selected.
Basically I need to know observer after payment method selected.
If my selected method is Cash On Delivery… then I want to validate some attribute in added cart product….and if that true then …place the order if false then want to redirect cart page with error Message….
Basically Any observer which can be fire after payment method is selected in magento.
Magento 1.9 – Observer After Payment Method Selection Before Order Placement
event-observermagento-1.9payment-methods
Best Answer
You can try with the
sales_quote_payment_import_data_before
.This one is dispatched in
Mage_Sales_Model_Quote_Payment::importData
that is called byMage_Checkout_Model_Type_Onepage::savePayment
that is called byMage_Checkout_OnepageController::savePaymentAction
, which is the action called when you presscontinue
on the checkout after selecting the payment method.