Email Notificarion

More
12 years 9 months ago #29826 by Bruna
Email Notificarion was created by Bruna
When someone pays for an event, neither the buyer or me receives email notification.

I'se set the messages on configuration but nothing happens.

any tutorial so I can check if i am doing the right thing?

tks.

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #29884 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Email Notificarion
Hi Bruna

What payment method you are using ? If you are using Paypal, maybe the reason is because Paypal IPN is disabled in your account. Could you please login to your Paypal account, access to History -> IPN History to see whether there are any IPN messages ? If Yes, what are the status of the message ?

Please check it and get back to me so that we can check it more detail .

Tuan

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #29885 by Bruna
Replied by Bruna on topic Re: Email Notificarion
it is not paypal.

i am using Pagseguro.

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #29886 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Email Notificarion
Oh, sorry. Then we could not provide support for this. I think you will need to ask the developer who develop the payment plugin to check it for you. I don't have experience with Pagseguro.

Regards,

Tuan

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #29890 by Bruna
Replied by Bruna on topic Re: Email Notificarion
ok, i will.

but can you help me checking if i have set the things correctly?
i want to be sure its something to do with the payment gateway...

tell me, what do i have to set up for having notifications working?
there is components / event booking / configuration / messages there i inserted the "from email".

what else would i have to do?
peharps in the global configuration of joomla???? would i have to insert anything there?

(i have sent a ticket - can you please, access it and check my admin - i sent the details there)

tks

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #29891 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Email Notificarion
The setting should be fine. However, basically, the sending email function is handled by the Paypal plugin. Usually for a payment plugin, when users make payment for you, the plugin will receive notification about that payment. The plugin needs to verify that payment and if it is valid, the plugin will call a function to send emails to registrants and administrator.

Just ask your developer to look at one of the payment plugin comes with the extension and he should know what to do

Tuan

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #29928 by Bruna
Replied by Bruna on topic Re: Email Notificarion
Tuan, asked my developer and he said the funcion is being called, and he pasted this code. Have a look and tell me what you think:


function verifyPayment()
{

if($_POST=='Aprovado' && isset($_POST)){

$config = EventBookingHelper::getConfig();
$id = $_POST;

$transactionId = $_POST;
$row = JTable::getInstance('EventBooking', 'Registrant');
$row->load($id);

if (!$row->id)
return false;
if ($row->published)
return false;

$row->transaction_id = $transactionId;
$row->payment_date = date('Y-m-d H:i:s');
$row->published = true;
$row->store();

if ($row->is_group_billing)
{
EventBookingHelper::updateGroupRegistrationRecord($row->id);
}

EventBookingHelper::sendEmails($row, $config);
JPluginHelper::importPlugin('eventbooking');
$dispatcher = JDispatcher::getInstance();
$dispatcher->trigger('onAfterPaymentSuccess', array($row));
return true;

}else{

return false;

}
}




Tks

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #29956 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Email Notificarion
Hi Bruna

Please ask him to check and make sure the code is called. Maybe Pagseguro doesn't notify Events Booking. Maybe you can add him to add log file to see whether the code is triggered or not (like how we add the IPN logs of Paypal, ask him to look at os_paypal.php for a sample).

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc