Closed rbouma closed 1 year ago
Hi @rbouma ,
Thank you for your report including the analysis already done on the matter.
We are going to look into it as soon as possible and we will keep you updated with feedback later this week.
If there are any questions or updates in the meantime, please let me know.
Hi @rbouma ,
We have successfully reproduced this issue. Currently we have a fix ready for the next release.
When I have an update about the release, I will let you know.
Hi @rbouma ,
We have updated our payment module with a fix for this issue: https://github.com/MultiSafepay/magento2/releases/tag/2.21.1
If there are more questions, feel free to reopen this issue or create a new one. For now i am closing this issue.
@Vinod-MultiSafepay Thank you, i will update the extension
Describe the bug Order confirmation gateway override setting "After paid transaction" is ignored if the default is set to after transaction
To Reproduce Steps to reproduce the behavior:
Service/OrderService.php
:After the order is placed it is pending payment with gateway status Initialised
Referenced to this file
Service/EmailSender.php
The default setting after transaction is pushed in the array.
then if a gateway override is defined it also pushed in the same array here:
Then it checks if the order can be send here:
An $emailType is not given in the
Service/OrderService.php#L174
Soafter_transaction
is used as default for this check en its true in this case when the transaction is placed not paid.In the log files it shows
Where the last line is 'Order confirmation email after transaction has been sent' not the one that needs to be logged is: 'Order confirmation email after paid transaction has been sent' in Service/Order/ProcessOrderByTransactionStatus.php#L197
Expected behavior The override setting that is configured is used instead the default, so the email is send after the order is paid in this case.