Duplicate confirmation e-mail

Created on 15 February 2022, almost 3 years ago
Updated 17 November 2023, 12 months ago

Describe your bug or feature request.

Our customers report getting duplicate confirmation e-mails after paying for an order (with Commerce Vipps). Actually, the two e-mails aren't duplicates since the order numbers are different, but it's the same content / value - from the same order.

It seems the cart theory was wrong. No carts are created.

There is just one transaction and the list of orders is correct, but the duplicate e-mail is very confusing.

This is Drupal 9.3.5, Commerce Core 8.x-2.29 and Commerce Vipps 8.x-4.0-beta4. No custom code, just site building.

Let me know if you want me to attached some of the Commerce configuration

🐛 Bug report
Status

Active

Version

2.29

Component

Order

Created by

🇳🇴Norway hansfn

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Having the same problem. Currently using Drupal 9.5.9 and Commerce 8.x-2.35. Able to recreate the issue on our dev server by using the back button after order completion. The order transitions from draft to complete two separate times.

  • 🇮🇱Israel jsacksick

    hm.. This is going to be tricky to fix/debug... I'm wondering if calling the loadForUpdate() method from CheckoutFlowBase::getOrder() would fix this... but I'm afraid this could cause the order to be locked when the order isn't going to be saved...

    It could be that

    PaymentProcess::isVisible()

    still returns TRUE even thought he order is paid because the total_paid field is not yet updated since that is done from the PaymentOrderUpdater on destruct().

Production build 0.71.5 2024