Support

Home Forums Event Espresso Premium Payment Methods Pro 2 PaypalPro methods set up issue with email

Payment Methods Pro 2 PaypalPro methods set up issue with email

Posted: September 23, 2020 at 11:28 am

Viewing 7 reply threads


Daniel

September 23, 2020 at 11:28 am

Hi!

I just activated a second PaypalPro payment method using the PaymentMethodsPro plugin. Everything seemed to be set up correctly and I had not yet put the payment gateway on the frontend since I was just starting initial testing.

Within 1 hour of creating this new “duplicate” gateway the EE messaging system started sending multiple copies of Event Registration emails.

I do not know if these events are related, but it seems likely! How could a second payment gateway of the same type trigger multiple (already sent) Registration confirmation emails?

I should add that I disabled the warning code that was blocking me from loading PMP and MER together so that may be related, but I don’t see how because the other gateway is not active and had not been used to receive payment on any events.

Please let me know if you have any insight into why adding a second payment method might trigger a multiple resending of emails?

Thanks in advance for any insight!
D


Daniel

September 23, 2020 at 11:30 am

Also, I deactivated the second PaypalPro payment method 20 minutes ago and the email sending has stopped. It had been going on a 10 minute loop sending multiple new (duplicate) emails to both Registrant and Admin.

D


Tony

  • Support Staff

September 28, 2020 at 11:39 am

Hi Daniel,

I’m really struggling to think of any kind of connection here, the only thing I can think of that would make any kind of sense here is if the request to activate the plugin triggered a cron job to send messages and the request was cached, but even then that’s a stretch.

Was it the same batch of registration emails sent? Which emails?

If so, was it the ‘last’ batch of email that was sent from Event Espresso?


Daniel

September 28, 2020 at 11:53 am

Thank you for the reply! Much appreciated.
I have again added a second Payment Gateway without any email resending issues. Perhaps it is just the first time you activate a gateway – maybe a gateway of the same type? Maybe a gateway of the same name? (Not sure at what stage of payment gateway creation I updated the name.

In any case, I am moving forward with this two gateway solution.

D


Tony

  • Support Staff

September 28, 2020 at 2:24 pm

That’s what makes this really weird, none of those requests are related to messages at all. There’s nothing even remotely similar to the requests that trigger messages when you enable a payment method.

Having a payment method with the same name shouldn’t be an issue as internally they are unique.

This with your other thread with messages leads me towards some kind of caching somewhere, I just can’t think of anything else that would make sense in those situations.

Are you running any form of caching?


Daniel

September 29, 2020 at 10:37 am

Yes, as with every other WP site I have multiple types of caching. I tend not to use object or query caching, but I do have page-level caching for non-logged-in users.

There is code that relates messages to Payment Methods… I definitely saw some code that triggered messages but I couldn’t quite get my head around all the conditions which is why I sent the question.

In any case, it appears that the duplicate messages have not reappeared. But It may be caused only on the first time activating a new payment method?

D


Tony

  • Support Staff

September 29, 2020 at 12:17 pm

I tend not to use object or query caching, but I do have page-level caching for non-logged-in users.

Page caching for non-logged in users shouldn’t cause either of these.

There is code that relates messages to Payment Methods… I definitely saw some code that triggered messages but I couldn’t quite get my head around all the conditions which is why I sent the question.

Which code? Payment methods don’t directly trigger messages, they update payments, which in turn updates transactions, which updates registrations which trigger messages.

But in either case, the request for activating/enabling a payment method has nothing remotely similar to triggering messages which is what I referred to above, not the payment method itself 🙂

In any case, it appears that the duplicate messages have not reappeared. But It may be caused only on the first time activating a new payment method?

I’ve tested this a few test sites just to confirm and so far, o additional messages. Seems like a tough bug to reproduce so far, which is frustrating as there’s simply nothing to even start troubleshooting yet but I’ll see if anything some up on those sites.


Daniel

September 29, 2020 at 12:45 pm

Thank you Tony!

As I said, this issue is no longer happening and I have a second Paypal Pro Payment gateway up and running.

So, please de-prioritize this issue.

I am still testing the 1000+ repeat email sending you mentioned … but so far have not had time to really get it worked over.

Viewing 7 reply threads

The support post ‘Payment Methods Pro 2 PaypalPro methods set up issue with email’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso