Open mariuszsienkiewicz opened 1 week ago
Okay, I found the place where MOLLIE_STATUS_EXPIRED
or MOLLIE_STATUS_CANCELED
are used. I will debug further. If it's only a problem in our environment, I will close this issue.
Hi there @mariuszsienkiewicz,
Thank you for the detailed explanation of the issue!
I have forwarded the information to our development team and as soon as I have more details, I will get back to you!
Best Regards, Invertus Support team.
Expected behavior
Sometimes Klarna Pay Later/Pay Now gets cancelled or expired, which is visible in order history (in Mollie Dashboard). It looks like this:
PrestaShop should get a notification about this and reflect the cancellation/expiry status in the PrestaShop order status using probably
MOLLIE_STATUS_EXPIRED
orMOLLIE_STATUS_CANCELED
config.Actual behavior
When Klarna Pay Later/Now gets expired or cancelled, our shop is indeed notified about this via webhook. However, the Mollie module sets the wrong status, "Order payment authorized" is set twice in the example above it gets reflected like this:
It appears that the module cannot properly handle cancellation/expiry because
MOLLIE_STATUS_EXPIRED
andMOLLIE_STATUS_CANCELED
is not used anywhere, unless I missed something in the code.Our client (the shop owner) has lost too much money because of this bug. Please check if it works for you and if not we must have some way to get around this problem.
Plugin version: 6.1.1