|Tony||# Posted on May 3, 2018 at 3:27 am|
I’m pulling a Transaction by ID so that I have a Transaction in the console, I’m replicating the object you have available on that hook, this was my previous reply:
You don’t need to know the ID, you already have the transaction object passed to the hook.
Which payment gateway?
Add the write_log function I gave you above to either, enable WP_Debug using the snippet I gave you and then add:
before the email is sent, retest and check the debug.log file to see if you have the objects written to the log.
There are too many unknowns in your code right now, you don’t know if
In short, break down your code and check each variable as you run through to find what is actually being run and what they contain before you use them, right now you don’t know if the email is sent or not and just that it doesn’t work, you need to narrow that down to the specific area that fails because the above is working for me.