Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes call to undefined method 'queueNewOrderEmail' on PayPal webhook callback #29

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

peterschen
Copy link

When the webhook call is triggered by PayPal it fails with a 503 and exception.log will show something like this (for whatever reason the errors are German on my system):

2022-01-24 16:18:46] main.CRITICAL: Ungültige Methode Magento\Sales\Model\Order\Interceptor:: queueNewOrderEmail {"exception":"[object] (Magento\\Framework\\Exception\\LocalizedException(code: 0): Ungültige Methode Magento\\Sales\\Model\\Order\\Interceptor:: queueNewOrderEmail at /var/www/[REDACTED]/magento2/vendor/magento/framework/DataObject.php:399)"} []

Model\Webhook\Event.php uses the method queueNewOrderEmail which is no available anymore and emails should be sent using Magento\Sales\Model\Order\Email\Sender\InvoiceSender. This PR will remove usage of queueNewOrderEmail and use InvoiceSender instead to send the email.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant