Adyen / adyen-prestashop

Adyen Payment plugin for Prestashop
MIT License
14 stars 14 forks source link

Webhook notifications remain in queue #267

Closed alexandrebrubeyonds closed 11 months ago

alexandrebrubeyonds commented 1 year ago

Hello, we try to upgrade to v5 module but in last version Webhook Notifications remain in queue and orders remain in progress.

Do you know what's happening?

Capture d’écran 2023-10-28 à 10 37 02
DamjanLogeecom commented 1 year ago

Hello @alexandrebrubeyonds,

Thank you for reaching out to us regarding this issue,

Judging by your screenshot, we suspect the plugin’s asynchronous processes are not working as expected.

Adyen plugin performs most of its work in the background. In order to be able to detect and start background sync, the Adyen plugin simulates a long-running (background) process by asynchronously invoking background worker web requests with a minimum of 5s delay between two successive invocations.

In order to work properly with multiple asynchronous operations, the plugin needs the possibility to send a web request to itself.

To confirm this, we would like to ask you to provide us with the results of the Integration configuration validation test.

To do this, you can log into your shop and access the Adyen module. After this, you can navigate to the General Settings page and see additional links appearing in the bottom left corner. Access ‘'System Information’' page and under ‘'Integration configuration validation’' section, click on ‘'Validate’' button

Please download the reporter and share its content with us.

Kind regards.

alexandrebrubeyonds commented 1 year ago

Hello @DamjanLogeecom,

Thank you for your reply. Yes, we have a problem with this background task, the test failed. Here is the report attached.

auto-test-logs.json 279019159-30abf349-a21f-4dfc-b6d4-e2c44c7ce06a

King regards,

DamjanLogeecom commented 1 year ago

Hello @alexandrebrubeyonds,

From the log file you shared, we can notice the following error message:

Async process failed. ERROR: 403 Message: 403 Forbidden<\/h1>\nRequest forbidden by administrative rules.\n<\/body><\/html>\n

Which confirms our doubts from our first response. It seems that the Async Process is failing due to the shop’s server configuration blocking requests sent from the plugin to itself.

In order to work properly with multiple asynchronous operations, the plugin needs the possibility to send a web request to itself (https://[SHOP-URL]/AdyenAsyncProcess)

We would advise you to check your server’s configuration and configure the server so the plugin would be able to send requests to itself.

If you have any further issues or concerns, please let us know. We will gladly assist.

Kind regards.

alexandrebrubeyonds commented 1 year ago

Hello @DamjanLogeecom,

Thank you for your feedback, we were able to discuss it with our system team host.

In fact, you are using a user-agent blocked by our services: Chrome/64.0.3282.186 They notice that the service also uses multiple IPs. They therefore temporarily accepted the user-agent Chrome/64.0.3282.186.

To advance :

DamjanLogeecom commented 1 year ago

Hello @alexandrebrubeyonds,

Thank you for your feedback regarding user-agent, we will consider this change for our future releases.

As we mentioned in our previous response: “In order to work properly with multiple asynchronous operations, the plugin needs the possibility to send a web request to itself (https://[SHOP-URL]/AdyenAsyncProcess)”

Based on this, the list of IP addresses will actually match your shop web server where the module is running. The plugin sends an asynchronous web request to the same shop where it is installed.

Kind regards.

logeecom commented 11 months ago

Hello @alexandrebrubeyonds,

Since we got no response to our last message, we assume that the issue is resolved. Therefore, we will close this ticket.

Thank you,

Kind regards.