registration & payment notification emails
-
Hi,
Not sure where I’m going wrong with this but I don’t seem to get any email notifications when someone books an event or when they pay via paypal. Email address for corresponding event author is as it should be. Registration approval upon payment set to automatic. Also in the approvals section it says paid ‘no’ even when payment has been made and received.
Any help greatly appreciated!
-
Hi,
Have just solved the notification emails part of my issue. It was not working with SMTP selected but works fine using WP Mail.
Issue with payment status is all that remains. I have looked at some older threads but none have helped as most of the old issues have been addressed in newer versions.
Just that one little hurdle and it’s all good.
Thanks
This means that the payment notifications via paypal didn’t come through to the server … Search for “paypal_notification” in your webserver logs, if you don’t find a line with that GET string in it, then it didn’t arrive (internal sites of course will not work)
Thanks.
The link you sent me via email took me back to this post…?
Errr … what? Concerning this post, I did not send you any mails. WordPress might’ve sent you the notification.
You’re quite right. I didn’t realise that it automatically included a link to my post in the email. Sorry!
So I’ve checked the logs and I can see entries for ‘paypal_notification’ but they are prefixed only with POST and not with GET. So… what would be the next steps if those payment notifications aren’t arriving?
Many thanks
Still plugging away at this and looking at any old threads for a clue. I might have some useful information now:
When I process a payment through PayPal the email address that created the event and receives an email notifying that payment has been received. However, when I look at the IPN report in PayPal I can see that the receiver email is different. I think that the problem comes about because I have a number of emails connected to one PayPal account: I have events@domain, sales@domain and shop@domain. Ideally I need to keep these separate strands as it means that payments made through PayPal for different business areas send notifications to the appropriate person and makes reporting easier. However, sales@domain is the default email associated with the account and that is the ‘receiver email’ for the IPN. Payment is connected to events@domain
Any thoughts on how I might proceed?
Yes, my bad: it is a POST, but to an url with something like “?eme_eventAction=paypal_notification” in it.
So the IPN arrives ok … that means that the IPN validations fails. You can activate file based logging (or email) by changing the following lines in eme_payments.php:// log to file options $ipn->log_to_file = false; // write logs to file $ipn->log_filename = '/path/to/ipn.log'; // the log filename (should NOT be web accessible and should be writable) // log to e-mail options $ipn->log_to_email = false; // send logs by e-mail $ipn->log_email = ''; // where you want to receive the logs $ipn->log_subject = 'IPN Log: '; // prefix for the e-mail subjectCheck the resulting log for the reason.
(not sure if the email logging will work ok)ok, our replies crossed …
If the email is the problem, you can take a look at payment_gateways/paypal/IPN.php and comment out these lines:// check if it was payed to your paypal e-mail or business id if(strtolower($this->ipn['receiver_email']) != strtolower($this->paypal_email) && strtolower($this->ipn['receiver_id']) != strtolower($this->paypal_email)) { $this->write_log('WARNING: payment was made to different e-mail account', $this->pretty_ipn); return false; }That should solve it for you …
Edit: maybe that check should be removed, it is kind of too restrictive …Thanks very much. I’ll have a look at making those changes. To aid a process of elimination I did change everything to use the default PayPal email address but it’s still not working.
One other thought for what might be interfering: the site is in maintenance mode, if this would make a difference??
I’ll make the change and get back to you but it’s getting a little late now and my eyes are going a bit blurry…
Would it matter that I’m testing in sandbox mode? I did try in Live earlier today but it didn’t work… Just wondering.
OK. Made that change and it created a slight difference; previously any bookings had been showing in the ‘Pending Approvals’ section. This time it was not there but I found it in the ‘Change Registration’ section. That would sort of make sense as the event was set to automatically approve once payment is made. However, the box for ‘Paid’ still says ‘No’. It also looks as if all 3 bookings that had been attempted by that ‘person ID’ had been approved rather than just the one that was paid for.
Thanks once again for any insight you can give!
Normally PayPal ipn only works in live mode.
The topic ‘registration & payment notification emails’ is closed to new replies.