Skip to content

[2.1.10] No order confirmation email after paying with PayPal Express #12792

@aeu

Description

@aeu

Issue

We are (and have been) experiencing persistent problems with customers not getting order confirmation emails after paying with PayPal Express. Store admin is getting notification from PayPal, and funds are processed, but no notification from the Magento store. This is causing customers to place orders multiple times, and/or cancel their orders completely, which is obviously unacceptable.

We have seen these in every release of Magento 2 we have used since October, up to and including our current implementation which is 2.1.10.

Preconditions

Dedicated server,
Magento 2.1.10.
CentOS 7.3.
PHP 7.
MariaDB.
Double Redis (session and cache).
Images on a CDN.

Notes

After having spent more hours than I care to count poring through debug log files trying to find a cause, I have to admit that I'm pretty much at the same level of frustration expressed in this thread about the same issue (#10464) whose resolution was the issue being closed and marked as fixed in 2.1.9.

To reiterate the comments of @andidhouse in that other thread - this is core functionality that really should be prioritized, and is 100% a Magento issue. We build e-commerce stores on several platforms, and PayPal has literally zero issues on any of the other platforms we support.

If provided, I would be happy to install code with extended logging to help diagnose this issue. From what I have seen Exception and Debug logs look fine, I can't see any difference between transactions that work and transactions that don't.

Steps to reproduce

This is not reproducible, and appears to be random. The only thing I can think of is that we left Asynchronous Send in it's default state (disabled) so perhaps there is some race condition there. We recently enabled Asynchronous Send but haven't had any flawed PayPal orders come in since, so we cannot tell if this made a difference or not.

Expected result

  1. Customers should consistently get order confirmation emails

Actual result

  1. Customers randomly do not get order confirmation emails

Misc

This may or may not be related, but we are also seeing customer addresses not being populated after orders for Virtual Products are complete. At first I thought this was by design (since there is no product to ship no address is needed) but I also saw this issue (#12707) which seems to indicate otherwise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Format is validGate 1 Passed. Automatic verification of issue format passed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions