-
Notifications
You must be signed in to change notification settings - Fork 31
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
Module doesn't change statut with hook #353
Comments
Hello @BenTen, |
Thank you @bogdan202 to clarify the process
Maybe this sentence was not clear. I mean, the statut seems not add by using this hook BUT the statut is adding I don't have override for this files but modification has been made to apply 4 years ago:
who was trouble with Werbservice of PS 1.7.5 in our case. Here the statut is updated but can't see it on the |
Hi! Prestashop 8.2.0 I found in Apache's access.log the following lines with 500 errors (shown only relevant part) /es/module/paypal/webhookhandler HTTP/1.1" 500 and in error.log the following error and trace: PHP Fatal error: Uncaught Error: Call to a member function getPaypalOrderByPaymentId() on null in webhookhandler.php in line 114 is trying to report a catched exception Looking the source at line 196 I found that the property servicePaypalOrder
is null, so commenting this line and returning an empty PaypalOrder object the catched exception was shown in the log. This non-existen service is from one of my modules and is called from symfony container in the hook hookActionPaymentConfirmation only if we are in Backoffice context. So the question here is, which is the execution context of the webhook. But returning to the subject. I think the bug is that if there is an error executing the method Order::setCurrentState() the exception is captured but not written because servicePaypalOrder is NULL. Hope this helps. |
Is the PR related to the issue I opened or to the last comment? |
Hello, where can I see this trace ? Is there a log file somewhere ? |
Describe the bug and add screenshots
When a customer make an order by paying with Paypal, the module add the statut "awaiting PayPal payment" with the hook
hookActionOrderStatusPostUpdate
.But when the module receive the information of the paypal's webhook, the statut "payment accepted" is not add by using this hook.
So if another module read this hook, it can't be able to know the new statut.
Expected behavior
The PayPal module need to change each statut by using the hook hookActionOrderStatusPostUpdate.
Steps to reproduce
hookActionOrderStatusPostUpdate
hookActionOrderStatusPostUpdate
PrestaShop version(s) where the bug happened
1.7.5
PHP version(s) where the bug happened
7.2
Module version(s) where the bug happened
6.4.1 (addon version)
The text was updated successfully, but these errors were encountered: