Hello,
I just want to confirm I have the right code.
In both files (i.e. in 'confirm.php' and 'pp_confirm.php'), I currently have the following code right before the Universal email sendout:
if (true).
Clearly, I have to replace this.
I am thinking that the code I need to use in 'confirm.php' is:
if (isset($_POST["Payment_submit"]) || isset($_POST["Payment_submit_x"])).
But I think there is some code referencing PayPal in that same file that I can ignore, which goes:
$WA_PP_ECO_SetResult = WA_PP_ECO_SOAPObject();
if (!isset($_GET["plugin_file"]) && isset($_POST["payment-type"]) && $_POST["payment-type"]=="paypal").
I believe that I should ignore that, and go over to the pp_confirm file, and insert the following that I have copied from that file as:
if ((isset($_GET["token"]) && isset($_GET["PayerID"])) || (isset($_SESSION["PayPal_ECO_Token"]) && $_SESSION["PayPal_ECO_Token"] != ""))
In other words, even though PayPal data exists in both files, I should ignore whatever I see referenced there for PayPal in the first file, and only handle the Universal email trigger in the second one. So I make but the one paste operation in each.
Thank you.
KB.