0

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.

6

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 by Mage_Checkout_Model_Type_Onepage::savePayment that is called by Mage_Checkout_OnepageController::savePaymentAction, which is the action called when you press continue on the checkout after selecting the payment method.

  • its also working in one step checkout ? – Deepak Rai Oct 20 '15 at 7:00
  • I don't know...it depends on the extension – Marius Oct 20 '15 at 7:35
  • by which method we can get payment method here..can you explain pls – Deepak Rai Oct 20 '15 at 10:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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