2

Hi I'm looking for an event to use when payment fails.

Currently the only idea I have is using the mage_run_exception event and checking if it's related to the checkout/payment.

Is there an alternative event or potential model/controller rewrite I can do?

1 Answer 1

2

The event you are looking for is sales_model_service_quote_submit_failure it is dispatched in app/code/core/Mage/Sales/Model/Service/Quote.php when the order is submitted and you can retrieve both the quote and the order via the following code:

$quote = $observer->getEvent()->getQuote();
$order = $observer->getEvent()->getOrder();

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.