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

Multiple status change #1025

Open
mariuszsienkiewicz opened this issue Jan 13, 2025 · 1 comment
Open

Multiple status change #1025

mariuszsienkiewicz opened this issue Jan 13, 2025 · 1 comment

Comments

@mariuszsienkiewicz
Copy link

Expected behavior

The Mollie module should include a mechanism to verify whether the order has already been validated and PrestaShop recognizes it as successfully paid. It appears that, in cases where there are issues on the PrestaShop side (e.g., server performance problems) while Mollie sends webhook requests, this can result in situations where the order undergoes multiple status changes, which should not occur.

I think it's similar to this issue: #991, which is closed now.

Here is a scenario affected by this issue:

- Webhook called successfully, it took 3.0 seconds 10 January 2025 at 15:18
- Webhook failed with status code 28 (Operation timed out after 15001 milliseconds with 0 bytes received) 10 January 2025 at 15:10
- Webhook failed with status code 28 (Operation timed out after 15001 milliseconds with 0 bytes received) 10 January 2025 at 15:06
- Updated the description from 'mol_<id>... to '<ps reference>' 10 January 2025 at 15:04
- Webhook failed with status code 409 (Conflict) 10 January 2025 at 15:03
- Webhook failed with status code 28 (Operation timed out after 15001 milliseconds with 0 bytes received) 10 January 2025 at 15:02
- Notification email to email@example... sent 10 January 2025 at 15:02
- Payment of type credit card paid 10 January 2025 at 15:02
- Payment created 10 January 2025 at 15:01

Now, the PrestaShop side:

image

"Płatność zaakceptowana" = Payment accepted (Mollie assigns this status)
"Przygotowanie w toku" = In progress (warehouse assigns this status)
"Wysłane" = Sent (warehouse assigns this status)

As you can see, the webhook request times out, but the order is successfully created on the PrestaShop side. However, each subsequent webhook request resets the status to "Payment Accepted" (overriding warehouse statuses), leading to confusion.

@justelis22
Copy link
Collaborator

Hi there,

We will check this issue and I will get back to you as soon as more details.

Thank you for your patience!

--
Best Regards,
Invertus Support team.

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

No branches or pull requests

2 participants