Open stefliekens opened 2 years ago
@stefliekens Thank you for your contribution! I made PR https://github.com/limegrow/ingenico-m2-payments/pull/30
in my case this is never equal $result->getData('status') == $targetStatus
pending_payment vs. processed
what is de rest of your configuration @stefliekens ?
I applied the mentioned patch, but to no avail. The order confirmation is not sent, the 'afterSave' is fired 2x times but too early it seems. This is my config: any advice?
Since versions above 2.9.0 the order confirmation emails are no longer sent on status change to processing. Below the configured settings:
During some investigation I found probably the reason why this isn't working. In the Model\Processor class the
$orderRepository->save()
was removed and replace by a database transaction implementation to save the order and invoice together. But the Magento pluginPlugin/OrderStatePlugin
which should trigger the email only listen on the after save action.Here you can see the changes where I'm talking about.
I've created this patch/solution in my project. The after-save action is still triggered elsewhere during the result/redirect and/or webhook controllers, but I removed the old status check.