craftcms / commerce-mollie

Mollie payment gateway for Craft Commerce.
https://plugins.craftcms.com/commerce-mollie
MIT License
5 stars 10 forks source link

Order marked paid twice #23

Closed stenvdb closed 4 years ago

stenvdb commented 4 years ago

Description

In our commerce shop we got an order that has been marked as paid twice (aka the double of the actual amount).

I have tried setting the totalPaid db column manually to the correct amount, but that doesn't show up in the CMS (caching?). Have sent an email about this to craft support, but have gotten no response since oct. 25th. So I'll try here.. The payment gateway is Mollie. Is there some kind of race condition that is not 100% bullet proof?

Steps to reproduce

1. 2.

Additional info

stenvdb commented 4 years ago

Just heard from support and this might be related to https://github.com/craftcms/commerce-sagepay/issues/10 and wil get fixed in the mollie gateway. Thanks @lukeholder 🎉

stenvdb commented 4 years ago

Any update on when this could get fixed in the mollie plugin?

I would also like to know the correct way to fix this in the database, so that our client can see the correct paid amount in the control panel (and the invoices etc.)

stenvdb commented 4 years ago

Any update on this? Changing the totalPaid column does not change the amount displayed in the cp. @nfourtythree

nfourtythree commented 4 years ago

Hi @stenvdb

We have pushed an update to webhooks for mollie that could solve this issue.

I posted about how to update to the pre-release and asked for feedback to see if this helped with issues.

Would be great if you could see if this solves the problems you are seeing.

Thanks!

stenvdb commented 4 years ago

Hi @nfourtythree , will update asap, and wil let you know if this would happen again. Thanks!

Could you help me fix the issue above though? Changing the totalPaid column in the database, does not update in the cp. Can't figure this out.. We need to do something so the double paid amount gets fixed in the invoices etc.

stenvdb commented 4 years ago

@nfourtythree I have tracked down the issue to 2 records in the transaction table for the specific order, both marked as status 'success'. I assume the webhook fix in commerce-mollie 2.1.1. (https://github.com/craftcms/commerce-mollie/issues/22) prevents this from happening in the future.

For now (as I don't have time to update), I have set 1 of the 2 records as failed, making the totalPaid appear as it should.

As far as I'm concerned, this can be closed.

nfourtythree commented 4 years ago

Hi @stenvdb

Thanks for the update!

PieterxJan commented 4 years ago

Hi guys,

I still have this issue in a project for a client of us. As Sten stated, there are two transaction records, created on the exact same time, with the success status.

We have the latest version (2.1.1). I can fix this issue by setting the status manually, but the invoices are incorrect when they're generated because of this issue.

This is all on a production environment. I can't seem to reproduce this on my local dev environment.

Additional info

stenvdb commented 4 years ago

Hi @nfourtythree, unfortunately as @PieterxJan stated, I too have noticed that the issue is still not resolved. This is at least for our clients, a very critical bug. Because of this bug our client thought initially they sold way more than they actually did.

Of course logging in to mollie qiuckly shows you a correct sale amount. But because of this bug, for example the Commerce revenue dashboard widgets show a completely false overview of your shop sales. Very hard to explain to our clients.

If you want I can share a database dump, or even access to the site. Hopefully it can get fixed soon :crossed_fingers: Thanks for looking into this!

stenvdb commented 4 years ago

@brandonkelly @angrybrad Sorry to bug you on this ticket, but it has been 2 weeks without a reply. We have several shops running on Mollie and hope to get this fixed. 🙏

nfourtythree commented 4 years ago

Hi @stenvdb

Thank you for emailing support, we have sent you a reply there.

Just to keep everyone updated, this is something we are looking into and will update the issue when we have some information to share.

Will re-open this for visibility.

Thanks.

alexthn commented 4 years ago

Just to let you guys know, we also face this problem. For us it doesn't happen all the time but it does at least a couple of times a week.

nfourtythree commented 4 years ago

Hi All

Depending on what version of Commerce you are on we have just pushed 2.2.21 and 3.1.9.

The appropriate release and version 2.1.2 should fix this issue. Please update and let us know how you get on.

Thanks for all of your help in tracking this down.

stenvdb commented 4 years ago

Thank you @nfourtythree! I will update our sites running on mollie today and keep an eye on it.