Support

Home Forums Event Espresso Premium Payment confirmation issue

Payment confirmation issue

Posted: December 31, 2014 at 8:24 am


Alessandro Iannelli

December 31, 2014 at 8:24 am

Hi there,
The payment confirmation wasn’t working until I uploaded the other txnpage template suggested in an old post. Problem is that when I change the default name and address of the confirmation email by adding this code:
/** changing default wordpres email settings */

add_filter(‘wp_mail_from’, ‘new_mail_from’);
add_filter(‘wp_mail_from_name’, ‘new_mail_from_name’);

function new_mail_from($old) {
return ‘info@homeopera.net’;
}
function new_mail_from_name($old) {
return ‘Home Opera’;
}

to function.php, the payment isn’t confirmed anymore unless I refresh the page. I guess the code is slowing down the IPN or so. Any idea how to fix that? I also tried a plugin to change the name but same problem.

Thanks for your help,
Ale


Josh

  • Support Staff

December 31, 2014 at 9:44 am

Hi Alessandro,

Did you try setting the “Use fancy email headers?” email setting in Event Espresso > General Settings? It will do the same thing as your filter function and return the name and email address set in the above Contact Information settings.


Alessandro Iannelli

January 1, 2015 at 7:42 am

Hi Josh,
it works but unfortunately I still need to refresh the thank you page to get the payment confirmed…is there any workaround here?
Thanks,
Ale


Lorenzo Orlando Caum

  • Support Staff

January 2, 2015 at 11:28 am

Hi, could you take a look at these troubleshooting steps for the PayPal IPN?

https://eventespresso.com/wiki/how-to-set-up-paypal-ipn/#troubleshooting


Lorenzo


Alessandro Iannelli

January 13, 2015 at 10:29 am

I did all the steps, but still the payment doesn’t show up as accepted if I don’t refresh the page….


Lorenzo Orlando Caum

  • Support Staff

January 13, 2015 at 1:36 pm

Hi, I’ve taken another look at the troubleshooting steps that you tried. You mentioned that the simplified transaction form is already in place:

https://gist.github.com/lorenzocaum/648f677d0a228fa26f55

Do you also have autoreturn setup (https://www.paypal.com/us/cgi-bin/webscr?cmd=p/mer/express_return_summary-outside) and did you comment out or remove the send from filter from your original support post (at the top of this page)?


Lorenzo


Alessandro Iannelli

January 13, 2015 at 2:09 pm

Yes the above code has been removed and the autoreturn is set up. Simplified transaction template is also in place….


Lorenzo Orlando Caum

  • Support Staff

January 13, 2015 at 4:30 pm

Hi,

Here are notes on what you are experiencing from PayPal (delay of a few seconds):

https://developer.paypal.com/webapps/developer/docs/classic/products/instant-payment-notification/

Using IPN in your checkout flow

Although PayPal usually processes IPN messages immediately, IPN is not synchronized with actions on your website. Internet connectivity is not always 100% reliable and IPN messages can be lost or delayed. The IPN service automatically resends messages until the listener acknowledges them. The service resents messages for up to 4 days.

Because IPN is not a real-time service, your checkout flow should not wait for the IPN message before it is allowed to complete. If the checkout flow is dependent on receiving an IPN message, processing can be delayed by system load or other reasons. Configure your checkout flow to handle a possible delay.

Have you considering adjusting the content for the thank you page template to remove certain elements?


Lorenzo

The support post ‘Payment confirmation issue’ 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