Missing payment updates on multiple order payments

Created on 8 February 2023, over 1 year ago
Updated 9 February 2023, over 1 year ago

When multiple payments are initiated for one order, the payment update is not correctly processed to the order and commerce payment entity. This happened some times when a user was going back to the webshop without finishing the payment and starting the payment again.

I tried to reproduce this in test mode locally without the webhook and succeeded following below steps:

  1. Place an order, go to payment -> to the external mollie payment url
  2. An incomplete payment is now added to the order with status 'New' at /admin/commerce/orders/[order:id]/payments
  3. Don't pay for it, but leave the payment url open
  4. Go back to the checkout in another browser tab (back button, or url) and place the order again
  5. A second incomplete payment is now added to the order with status 'New' at /admin/commerce/orders/[order:id]/payments
  6. Go back to the first incomplete url and finish the payment
  7. You are now redirected to the commerce checkout complete page, but the payment at /admin/commerce/orders/[order:id]/payments is not updated while the mollie payment state is changed to 'paid' when you look at /admin/mollie/payments

Not 100% sure if this is a mollie or commerce payment issue, and i am also not sure what the expected behaviour is when a user for example changes the order (and price) and then continues the previous payment.

πŸ› Bug report
Status

Closed: cannot reproduce

Version

2.1

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands Maico de Jong

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024