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

Klarna payments creates duplicate orders #1016

Open
EvilDragon opened this issue Dec 27, 2024 · 10 comments
Open

Klarna payments creates duplicate orders #1016

EvilDragon opened this issue Dec 27, 2024 · 10 comments

Comments

@EvilDragon
Copy link

Expected behavior

Only one order should be created.

Actual behavior

Two orders with different reference numbers but an identical Mollie payment ID are being created.
This happens both with Slice It. and Pay Later. payments, don't know about the other Klarna payment methods, but they are probably affected as well.
This does not happen with other payment methods within Mollie.

Steps to reproduce the behavior

Place an order using a Klarna Payment method.

Environment

  • PrestaShop version: 8.2.0
  • Mollie module version: 6.2.4
  • PHP version: 8.1.31
@justelis22
Copy link
Collaborator

Hi there @EvilDragon,
Happy New Year!

To investigate this issue, additional information would be needed.

Can you please let me know how the issue can be recreated? Does it happen for all of the orders or only specific ones?

Please attach some screenshots or a video recording of the error, and error logs from the module logs tab.

Thanks!

Best Regards,
Invertus Support team.

@EvilDragon
Copy link
Author

Happy new year to you as well :)

The issue happens with EVERY Klarna order since I updated the module middle of December.

You can see in the orders here:
screenshot_mollie

Only Klarna payments are affected, Credit Card, Apple Pay, etc. only create one order as expected, so it's not the Mollie module in general but only Klarna payments.

Here is the log of one of the orders:
[
mollie_log
]

Let me know if there's anything else I can do to help :)

@justelis22
Copy link
Collaborator

Hi there @EvilDragon, thank you for the additional information!

We analyzed the issue and tried to recreate it in our local environment, however, the issue could not be recreated from our side.

Perhaps you have a development environment you could share with us? If yes, please share it via email at [email protected].

You can add the credentials here - https://privatebin.net/ and share the link with us.

Thanks!

Best Regards,
Invertus Support team.

@Shoprunners
Copy link

Hi,
same behaviour with the shop of my customer as well.

Does not happen with every pay later order though.

Orders have same reference and are related to each other.

image

Both orders get the same order state in the beginning but at differenct times:

05.01.2025 17:39:59

05.01.2025 17:39:57

So something must be wrong

@tschorakl
Copy link

Hi,

have the same problem with two stores (PS 8.1.2 and 8.1.4) since this year, although it has never occurred before and the stores have been in production for some time.

The problem occurs with version 6.2.3 and 6.2.4. So far it only affects payments via Klarna - there have been no problems with PayPal and credit cards.

Orders are created twice in the store, but only once in the Mollie dashboard. One of the orders is created without an invoice, the other with. Both orders have the same timestamp and the same transaction number (e.g. 08.01.2025 10:49:52 - Pay with Klarna - ord_1.tso83f).

No errors visible in the log files. In addition, the problem does not occur with every order, so the error is not really reproducible.

@mariuszsienkiewicz
Copy link

Bump, we have the same issue. It seems to be something bigger. Here is the history of the Klarna payment that experienced this duplication issue:

image

As you can see, even there are some duplicated changes in the history, each "Billing address changed," "Shipping address changed," or "Order number changed" entry contains the same data, meaning nothing has actually changed.

@justelis22
Copy link
Collaborator

Hi there everyone, thank you for the information!

Our team is checking what could be the root cause of the issue.

As soon as we have more details, I will get back to you.

If you have any questions, please let me know!

Best Regards,
Invertus Support team.

@justelis22
Copy link
Collaborator

Hi there everyone (@mariuszsienkiewicz, @tschorakl, @Shoprunners), thanks for waiting!

We have checked this issue and tried to recreate it locally on our environments, however, everything seems to be working fine, but we were not able to prompt this issue.

This indicates that the issue might be related to live APIs or something specific configuring in your shops. Can any of you provide the Back Office and FTP credentials for us to debug your individual cases?

If you have a development environment, that would be even better. That way, we can work on the issue without disturbing the live store.

You can add the credentials here - https://privatebin.net/ and share the link with us via email at [email protected].

Thanks!

Best Regards,
Invertus Support team.

@Shoprunners
Copy link

Hi,
we talked to klarna and we have some news:

They discontinue(d) all the seperate payment methods (pay later, pay now...) and have only one method (pay by klarna) left. During the period of switching the methods, there can be errors.
We have to disable those methods in mollie portal, make sure to use latest mollie module and activate the new payment method there.
I will let you know, if this helps, Maybe be aware how to cope with outstanding payments... not sure about that.

@EvilDragon
Copy link
Author

EvilDragon commented Jan 15, 2025

Hi, we talked to klarna and we have some news:

They discontinue(d) all the seperate payment methods (pay later, pay now...) and have only one method (pay by klarna) left. During the period of switching the methods, there can be errors. We have to disable those methods in mollie portal, make sure to use latest mollie module and activate the new payment method there. I will let you know, if this helps, Maybe be aware how to cope with outstanding payments... not sure about that.

Interesting information, I've made this switch now and will see if this helps.
I didn't disable the methods in the Mollie Portal yet but only in the Mollie Module, this should be okay as well (just to make sure no payments are lost).

If this doesn't help, I'm happy to give access to my backend to one of the devs :)

UPDATE: Got a new order today, this time with Pay by Klarna - and it got a duplicate as well.
So only switching to Pay by Klarna doesn't work, I'll disable the other Klarna payment methods in Mollie now.

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

5 participants