I have read multiple questions and answers pertaining to this but can't find the proper answer for my situation. Most relevant question and answer Send an Email notification to the admin for pending order status in WooCommerce
Goal: I am trying to connect up my on-premise FileMaker database to my WooCommerce site. I want to be able to have customers pay their invoices online through my WooCommerce site and limit the amount of steps required by employees.
The Problem: I am unable to generate a proper automatic invoice through WooCommerce. The above-mentioned solution works for when a customer completes checkout but hasn't completed payment. I have changed the code from woocommerce_checkout_order_processed to woocommerce_new_order but as expected the products don't show in the email invoice.
Does anyone have any ideas about how to get the products to show in the automatically sent email?
If I send the email manually the products show properly. It's just when it's automatic they don't show in the email.
Summary of actions: Employee generates an invoice that the customer wants to pay for online > Employee sends that data using REST API to WooCommerce > An email Invoice with Pay Now link is sent to the customer > Customer clicks the link and pays the invoice.