easy-digital-downloads icon indicating copy to clipboard operation
easy-digital-downloads copied to clipboard

Purchase notification is not sent correctly when Buy Now is used with PayPal

Open mihaijoldis opened this issue 2 years ago • 0 comments

Bug Report

Expected behavior

When I use Buy Now feature with PayPal I expect the purchase notification to be delivered correctly.

Actual behavior

It fails to send as probably the action runs before the email is set on the Order.

Steps to reproduce the behavior

  1. Create a Buy Now order as a guest user.
  2. See if you receive the Purchase Receipt.

Information (if a specific version is affected):

PHP Version: 7+

EDD Version (or branch): main

WordPress Version: latest

Any other relevant information: I just completed a Buy Now purchase and I can see the order has the PayPal email that I used to purchase assigned https://a.supportally.com/7e8Gip However, in the email log plugin, you can see the Purchase Receipt did not send as there is no email set as "TO" https://a.supportally.com/zpOKLu

Notice there isn't a name in the email receipt either https://a.supportally.com/Opdo6P

mihaijoldis avatar Aug 29 '22 19:08 mihaijoldis