Invoice not sent by email when using external payment provider

Created on 4 April 2024, about 1 year ago

I'm using this module to send the PDF invoice to the customer email address after they place an order. This works fine when using the default manual payment gateway. But when using Commerce Mollie ( https://www.drupal.org/project/commerce_mollie ) the invoice is not sent anymore.

I don't know if this is a Commerce Invoice or a Commerce Mollie issue.

🐛 Bug report
Status

Active

Component

Code

Created by

🇳🇱Netherlands marcom2021

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

Comments & Activities

  • Issue created by @marcom2021
  • Status changed to Postponed: needs info about 1 month ago
  • 🇮🇱Israel jsacksick

    Are you generating orders on order placement? Is the order place event triggered properly when placing an order via commerce_mollie?

  • 🇧🇪Belgium davidiio

    Hello we face the same problem here with commerce_mollie.

    While placing logs around I figured out that the method that actually send the email is never called.

    In InvoiceConfirmationSubscriber.php the sendInvoiceConfirmation() method is called and later invoicesList is populated but the destruct() method is never called.

    I've never saw a service that implements DestructableInterface, is commerce_mollie supposed to call that destruct method? Is it something managed by Drupal?
    What can I do?

    Thanks for any help :)

  • 🇮🇱Israel jsacksick

    The email is no longer sent on destruct() so you can try updating to the latest version.

  • 🇧🇪Belgium davidiio

    Updating to latest version worked for me! I should have checked that first!
    Thanks for your help jsacksick :)

Production build 0.71.5 2024