mollie / magento2

Mollie Payments for Magento 2
https://www.mollie.com
Other
98 stars 49 forks source link

Webhook failed with status code 425 (Unordered Collection) messages in Mollie and duplicate Registered notification about captured amount of XX in Magento #769

Closed jamieolney closed 6 days ago

jamieolney commented 2 months ago

Describe the bug When paying with Apple Pay, webhook failed messages appear in Mollie and duplicate registred notification in Magento appear. Seems similar to issue 679 that I opened last year

Used versions

To Reproduce Steps to reproduce the behavior: Use Apple pay and checkout as usual

Expected behavior When placed, history should go from Payment of type credit card paid 10 April 2024 at 10:09 to Webhook called successfully, it took 0.6 seconds 10 April 2024 at 10:10 Actual behavior There are one or two Webhook failed with status code 425 (Unordered Collection) messages and an additional Registered notification about captured amount of XX is registered in Magento 2.

Screenshots image

image

Additional context No issues with version 2.30.1 Using payments API and apple pay direct

Frank-Magmodules commented 2 months ago

Hi There @jamieolney ,

Thank you for opening this issue. The 425 error is expected with Apple Pay. As Apple Pay goes to paid immediately, the first webhook already comes in before we receive the response from Mollie on creating the transaction. This led to different problems in the past, deciding us to delay the processing of this.

For the multiple “Registered notification about” messages: that is caused by multiple webhook calls that are successfully processed. That only occurs when the response of the webshop on the webhook is too slow. Usually, this can be mitigated by setting Stores -> Configuration -> Mollie -> Advanced -> Process transactions in the queue (experimental) to Yes.

simonmaass commented 2 months ago

we can also see these errors in sentry:

image
Frank-Magmodules commented 2 months ago

Hello @simonmaass, Please see my previous comment, also that error has to do with having a response too fast when paying using Apple Pay.

Frank-Magmodules commented 1 month ago

Hi @simonmaass, Please let me know if this is now clear for you or if we can close this issue. Thanks!

Frank-Magmodules commented 2 weeks ago

Hi there @simonmaass , can we safely close this issue? Thank you!

Frank-Magmodules commented 6 days ago

Due to inactivity, I'm closing this issue. If you feel it is necessary, please feel free to reopen or comment on the issue.