mollie / magento2

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

Klarna Pay Later option webhook is called twice #604

Closed patricksteenks closed 1 year ago

patricksteenks commented 1 year ago

Describe the bug We see that for Klarna Pay Later payments the webhook is called twice. I'm not sure way. This way we receive two requests for an order update in our shop, which processes the order two times. It seems like a bug in Mollie? The webhook should only be called once upon successfull payment.

Used versions

To Reproduce Steps to reproduce the behavior:

  1. Order with payment option Klarna Pay Later
  2. Authorize payment
  3. In mollie.log you will see to calls to the webhook of payment succes. There is usually 1 minute between them.

Expected behavior I expect the webhook to be called only once when successfulll.

Actual behavior The webhook is called twice.

GioDeGruyter commented 1 year ago

We are having the same issue since today. I'm afraid this is quite urgent since this is the case for all projects that offer "Klarna Pay Later" as payment method with the M2 mollie modules.

Frank-Magmodules commented 1 year ago

Hi @patricksteenks and @GioDeGruyter ,

We are collaborating with Mollie to investigate this matter and will keep you informed of our progress.

HenKun commented 1 year ago

Same issue here. The two webhook calls are also visible in the Mollie backend in the order history.

Although it mixes up something in Magento (a second invoice with total of 0 is created and after shipping the order history entry states the captured amount is 0) within Mollie everything seems to work fine regarding the captured and settled amounts.

sfritzsche commented 1 year ago

Same issue here. (second invoice with total of 0 for pay later orders)

GioDeGruyter commented 1 year ago

Some extra info: the second invoice contains the store credit used for an order. (If store credit has been used to pay for the order)

litsher commented 1 year ago

Same issue!

patricksteenks commented 1 year ago

We also see multiple calls to webhooks with other payment methods. Do more people experience this?

sfritzsche commented 1 year ago

Yes. Found also multiple invoices for Klarna pay now.

ZIPITRO commented 1 year ago

Same issue here!

From: Patrick Steenks @.> Sent: Tuesday, January 24, 2023 11:37 AM To: mollie/magento2 @.> Cc: Subscribed @.***> Subject: Re: [mollie/magento2] Klarna Pay Later option webhook is called twice (Issue #604)

We also see multiple calls to webhooks with other payment methods. Do more people experience this?

— Reply to this email directly, view it on GitHubhttps://github.com/mollie/magento2/issues/604#issuecomment-1401632733, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFPDULDQLJPUFXDOMGVKXXLWT6PD7ANCNFSM6AAAAAAUDWIYEI. You are receiving this because you are subscribed to this thread.Message ID: @.***>

ZIPITRO commented 1 year ago

Indeed we notices this with Klarna first, now we also see with iDeal for exmaple

From: sfritzsche @.> Sent: Tuesday, January 24, 2023 11:39 AM To: mollie/magento2 @.> Cc: Subscribed @.***> Subject: Re: [mollie/magento2] Klarna Pay Later option webhook is called twice (Issue #604)

Yes. Found also multiple invoices for Klarna pay now.

— Reply to this email directly, view it on GitHubhttps://github.com/mollie/magento2/issues/604#issuecomment-1401635379, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFPDULBPMBSB5U4C6MJYLUDWT6PMVANCNFSM6AAAAAAUDWIYEI. You are receiving this because you are subscribed to this thread.Message ID: @.***>

LonoMollie commented 1 year ago

Hi all,

we wanted to inform you that our engineering team is currently working on this.

We will get back to you with an update as soon as possible.

Have a good day.

Kind regards,

Lono

Integration Manager - Mollie

LonoMollie commented 1 year ago

Hi all,

just got confirmation that the issue should be resolved.

Please let us know if you encounter any further problems.

Will close the ticket until further notice.

Have a great evening.

Kind regards,

Lono

Integration Manager - Mollie