Payone and no order confirmation email

Welcome! You have the problem, that Payone is not sending order confirmation emails in Magento 1? And we are talking about a local development system, were Payone is not able to deliver the Instant Payment Notification (IPN - or whatever it is called at Payone)?

Then I can tell you: This is correct. And I have no clue to fix it.

But why?

Magento only sends an order confirmation email if:

if (!$redirectUrl && $order->getCanSendNewEmailFlag()) {
    try {
    } catch (Exception $e) {

Payone is setting can_send_new_email_flag explicitly to false in \Payone_Core_Model_Payment_Method_Abstract::initialize, to take control of the email.


And when the order is appointed, the email is send:

public function onAppointed(Varien_Event_Observer $observer)


And this method is called via observer:


I hope this helps.