Hello,
Version : EventBooking 1.5.4
I'm developping a payment plugin for a french bank.
Requirement for this bank is to use a response file to validate paiement and after return with a return URL.
So i need to send confirmation email. I intégrated it in the response file on case transaction ok.
So my code is the same than used in other payment plugin with some difference to load good helper and so on.
Code:
// Send Email
JTable::addIncludePath(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_eventbooking'.DS.'tables');
$config = EventBookingHelper::getConfig();
$row = JTable::getInstance('EventBooking', 'Registrant');
fwrite($fp, "\n-------------------------> AVANT LOAD ".$row);
$row->load($eventId);
EventBookingHelper::sendEmails($row, $config);
I checked running and in helpers, sendEmails function which call getEmailContent.
The code where nothing append and i don't understand what needed are :
Code:
$jcFields = new JCFields($row->event_id, false, 0) ;
$view->assignRef('jcFields', $jcFields) ;
Thanks for your help.
Regards
Hugues