Authorize.net plugin and email

chrisa 17 May, 2009
Hi Guys,

Tried finding an answer for this on the forum- found an answer but it didn't work for me. 😢

Am using the CHRONOFORMS 3.0 software with the Authorize.net plugin. All works, but in cases where the CC transaction fails I don't want an order email to be sent.

I've determined that I'm able to get the $cf_AUTHNET_response_code value in the "On Submit code - before sending email" code block in my form, and it's valid. In the "On Submit code" block, I'm trying to prevent the email from being sent by executing the following PHP code:

<?php

global $cf_AUTHNET_response_code;
global $rows;

if($cf_AUTHNET_response_code != 'Approved'){
$rows[0]->emailresults = 0;
$mainframe->enqueueMessage('Here');
}
?>

It appears that I'm not able to "hook" into the "emailresults" member in the rows array. Any ideas what I'm doing wrong here?

Thanks and cheers,

Chris
Max_admin 18 May, 2009
Hi Chris,

I suggest that you upgrade, it will be easier to write this for the latest version! if you did an upgrade then let me know and I will show you how to do this very easily!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.