Support

Home Forums Event Espresso Premium iDEAL Mollie not changing Transaction Status to Complete after payment

iDEAL Mollie not changing Transaction Status to Complete after payment

Posted: September 26, 2017 at 12:09 pm

Viewing 32 reply threads


lisa

September 26, 2017 at 12:09 pm

Hi there,
It seems that the transaction status isn’t being changed to complete after payment has cleared, so having to manually change every registration.
Running on PHP5.6 (Did try to change it to PHP7 but gives errors with the theme)
Any ideas?
https://www.womensbusinessinitiative.net/
Thanks
Lisa


lisa

September 26, 2017 at 12:11 pm

Sorry, I’ve left it on PHP 7.
Thanks!


Josh

  • Support Staff

September 26, 2017 at 1:32 pm

Hi Lisa,

You can go to Event Espresso > Payment Methods > Logs and check the log entries there. Usually there are three log entries per transaction and one of them will include a response from iDEAL. There may be an error message in the response.


lisa

September 26, 2017 at 2:04 pm

Hi Josh,

There aren’t any logs there..?? (Since 03/26/2017)

Cheers,
Lisa


Josh

  • Support Staff

September 26, 2017 at 2:59 pm

Hi Lisa,

That may mean there isn’t any communication happening between the site and iDEAL when it sends the payment notification. Can you check to see if the server has cURL enabled and also check for the potential of a security plugin blocking the response?

Also does the site have the current version of the iDEAL plugin? (v1.0.1.p)


lisa

September 27, 2017 at 1:44 am

Hi Josh,

I have EE4 iDeal Mollie Payment Gateway v1.1.4.p installed.

cURL is enabled, and using Wordfence plugin, but I’ve disabled it now. It still doesn’t complete the payment and there are still no logs.

Interestingly, I now can’t approve payments manually that have been made, so getting a bit stuck with registrations (attempted both before and after disabling WordFence)

Help!


lisa

September 27, 2017 at 1:50 am

(I can send you a screen shot – it just sits there on the approve payment page saying processing at the bottom of the screen but doesn’t complete)


Tony

  • Support Staff

September 27, 2017 at 5:50 am

A screenshot won’t help, there will be an error being thrown on the request which is breaking the ajax (the processing).

Do you have access to the server’s error logs? If so check if any fatal errors are being thrown by EE.


lisa

September 27, 2017 at 11:30 am

Nothing in the logs on the server…


lisa

September 27, 2017 at 11:37 am

I have also used developer tools to monitor the network traffic and other errors whilst making a payment but nothing shows up. I guess ajax problems would show up here?


Tony

  • Support Staff

September 27, 2017 at 11:41 am

Can I take a look in the admin? If so you can send temporary login details using this form:

https://eventespresso.com/send-login-details/

Note the FTP credentials are important as I’ll likely need to enable WP_DEBUG on the site to view the error and please also provide details oh how I can reproduce within the form.


Tony

  • Support Staff

September 27, 2017 at 11:42 am

You’ll see the ajax request there yes (within the admin-ajax.php request), but if your server isn’t displaying errors you’re not going to see anything on the request.


lisa

September 27, 2017 at 11:59 am

I’ve sent the temporary login details.


Tony

  • Support Staff

September 27, 2017 at 1:20 pm

ok, there is no error because the method isn’t even running so it’s not getting to the point where it would throw an error.

Have you restricted admin-ajax.php with WordFence at all? (Note that disabling WordFence doesn’t remove a lot fo the modifications it makes, for example custom .htaccess rules)


Tony

  • Support Staff

September 27, 2017 at 1:27 pm

I’d like to install plugin to confirm the capabilities are correct on Admin role, just confirming that’s ok?

If you prefer to install them yourself:

Members by Justin Tadlock s fine.

Or User Role Editor, anything that allows me to view caps.


lisa

September 27, 2017 at 1:59 pm

Hiya,

no .htaccess rule to block access to file and haven’t made any other modifications.

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

Yes, its OK to install confirmation plugin to check if capabilities are correct.

Thanks Tony


Tony

  • Support Staff

September 28, 2017 at 1:52 am

Hmm, so the capabilities are fine.

The above .htaccess is fine.

It’s possible something is de-registering the ajax action EE registered for the above actions or something is hijacking ajax requests and $.ajax.post has its values wiped/altered. Or even something altering EE’s load process so that ajax called back isn’t being set on the request.

If you test the above with only Event Espresso running what happens then?

Each request made throws errors from Thesis, it’s on a totally unrelated file but it may be a clue that Thesis is doing one of the above on the ajax requests. Try temporarily switching to a default theme and see if it works then.

https://eventespresso.com/wiki/troubleshooting-checklist/#themeconflicts

If you’d rather not test this on the live site I’d recommend cloning the site on a subdomain and troubleshooting this there, once the cause is found a fix can then be applied to the live site.


lisa

September 28, 2017 at 1:53 pm

Thanks for your reply.

I’ve now tested EE on just Twenty Seventeen with no other plugins running with the same result. The transaction sits at Pending Payment and no confirmation is sent.

Reverting the site back to PHP 5.6 has resolved the manual completion transaction problem, so at least I can manually complete registrations.

Thanks,
Lisa


Tony

  • Support Staff

September 29, 2017 at 5:02 am

Is the server running opcache with PHP7?

You’ll need to disable that to use it with EE4. I’m running multiple test sites on PHP7 and PHP7.1 without any problems updating the registrations so if you’ve tested that with no other plugins and a default theme there’s something different about the setup there.

I’ve added some additional logging to the Mollie iDeal payment method, can you switch out the version in use on the site currently to the version I have just emailed to you please.

I’d like to confirm that the mollie payment object is created correctly and the values it is using are correct.


lisa

September 29, 2017 at 5:59 am

Hi Tony,

I deleted the old Mollie plugin and installed the one you emailed. Then I ran a test transaction, and it still doesn’t complete.

I reverted back to PHP 5.6 as PHP 7 wasn’t allowing me to manually complete the transactions. Could this have been caused by opcache running then?.

Many thanks!
Lisa


lisa

September 29, 2017 at 10:55 am

(By the way the site is hosted on siteground)


Josh

  • Support Staff

September 29, 2017 at 11:10 am

Opcache will tend to cause fatal errors like this:

PHP Fatal error: Class ‘ÿÿÿÿ’ not found in {plugin file name}. Generally you would have see errors like that in the error log if Opcache was causing the problem.


Tony

  • Support Staff

September 29, 2017 at 1:13 pm

The changes I made to the Mollie add-on won’t fix the problem, it just added a log entry with the mollie payment object contents. That object is created when you select mollie, EE builds out a mollie payment object and then passes you over to mollie.

As part of that object, EE tells Mollie the ‘webhookUrl’ and ‘redirectUrl’

webhookUrl is the URL that Mollie will send the IPN too, redirectURL is the URL you are directed to after payment.

For EE the webhookUrl looks like:

http://www.womensbusinessinitiative.net/transactions/?e_reg_url_link=1-ba10abc197d6b3ab334f1c9d3246658d&ee_payment_method=ideal_mollie

All that request does is trigger EE to pull the Mollie payment from your transaction and then send a request to Mollie to confirm the payment went through. The problem on your site is that URL isn’t being hit by Mollie (that’s why there is no other payment logs) so either something is blocking that request or the transactions page is being cached and not telling EE to load the payment etc.

Can you check with siteground that the requests aren’t being blocked by them? You can find Mollie’s IP Addresses here:

https://help.mollie.com/hc/en-us/articles/213470829-Which-IP-addresses-does-Mollie-use-From-which-IP-range-can-I-expect-requests-

If I manually load the above URL in my browser I can see from the EE logs that it attempts to check with Mollie and confirm the payment, which means on a ‘normal’ payment, that isn’t happening at all.

If you’d like I can temporarily switch out your Mollie details on your payment method with our test account and run a payment using my account just confirm its not an issue with the Mollie account. The test account will be live for roughly 5 mins but during that time another user may register and attempt to pay.


lisa

September 30, 2017 at 10:38 am

Hi Tony,

Yes do go ahead and run a test with your Mollie details and let me know how that goes. If you rule out the account itself, I will get in touch with Siteground.

Cheers,
Lisa


Tony

  • Support Staff

October 2, 2017 at 4:21 am

I tested with our credentials and the same issue happens with those so it’s not the account.


lisa

October 2, 2017 at 2:16 pm

Hi, Tony,
OK, so what’s next?
Thanks,
Lisa


lisa

October 2, 2017 at 2:17 pm

Shall I reinstall EE from scratch? Will I loose all of the previous events and registrations?


Tony

  • Support Staff

October 3, 2017 at 1:26 am

OK, so what’s next?

I thought you were contacting SiteGround to have them confirm they are not blocking the connection from Mollie?

Shall I reinstall EE from scratch? Will I loose all of the previous events and registrations?

De-activating and deleting Event Espresso through the plugins menu will not remove any data from your site. WordPress may show a notice advising you will lose data, but that’s incorrect, plugins choose to remove data when uninstalled and EE does not.

So to answer your question, no you will not lose any events and/or registrations.

However, EE appears to be working correctly, if I hit the /transactions/ page using the URL above I can see the Mollie payment method logs trying to connect to Mollie to confirm the payment. That doesn’t happen with live payments on your site (it should) so it seems something is blocking the request from Mollie.


lisa

October 3, 2017 at 1:58 am

OK thanks Tony – I will check with Siteground 😀


lisa

October 4, 2017 at 2:54 pm

Dear Tony,

Siteground given a clear answer: no, the Mollie IP’s are definitely not being blocked.

??
Lisa


Tony

  • Support Staff

October 5, 2017 at 10:54 am

Hmm ok.

How have you set up the site to load over https?

One thing I can see is the webhookUrl value I mentioned above is using HTTP, Mollie uses that value to POST back a value and the redirect that is happening might (although it shouldn’t) be breaking that.

Your WP and Site URL settings are set to load over HTTP so I’m assuming you’ve set up some form of redirect?


lisa

October 5, 2017 at 2:25 pm

Hi Tony,

Thank you very much – that was exactly the problem. I over looked setting the URL’s to https and the redirection was being done somehow by Siteground.

Thank you!
Lisa


Tony

  • Support Staff

October 6, 2017 at 2:09 am

You’re most welcome, Lisa.

I’m glad its working and any further problems please do let me know.

Have a great weekend 🙂

Viewing 32 reply threads

The support post ‘iDEAL Mollie not changing Transaction Status to Complete after payment’ 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