-
Notifications
You must be signed in to change notification settings - Fork 12
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
Skip report notifications #111
Comments
[UPDATED] Currently the following responses are sent from calling /notification/adyen call:
According to the documentation: https://docs.adyen.com/development-resources/webhooks#accept-notifications Current proposal:
The Shopware 6 plugin has responses:
|
Describe the bug
When an unsupported notification is send to the plugin there is no
[accepted]
in the response.For example Report notifications
Fix in Shopware 6 plugin: https://github.com/Adyen/adyen-shopware6/blob/develop/src/Service/NotificationReceiverService.php#L271-L274
To Reproduce
Steps to reproduce the behavior:
[notification save error]
instead of[accepted]
Expected behavior
@acampos1916 , I'm not sure 100% about this:
When a notifications can't be handle correctly the plugin must catch the error and always return
[accepted]
instead of returning the error.Currently there is validation for the 'existence of an order' when creating the notification and when processing the notification. The validation when creating a notification is not needed: https://github.com/Adyen/adyen-shopware5/blob/develop/Components/Builder/NotificationBuilder.php#L64-L68
The text was updated successfully, but these errors were encountered: