Support

Home Forums Event Espresso Premium Payment statusses not correct

Payment statusses not correct

Posted: September 5, 2019 at 3:44 am


combiwel

September 5, 2019 at 3:44 am

We use the Mollie payment gateway on two websites. On both we currently have an issue that people do pay via Mollie although the payment status in EE doesn’t change and remains unpaid.


combiwel

September 5, 2019 at 5:16 am

We got a bit more detail:
1. Mollie trigger the webhook correctly and get a 200.
2. Payment status remains unchanged.


Tony

  • Support Staff

September 5, 2019 at 5:39 am

Hi there,

Is that happening for every payment made with Mollie?

With the way Mollie works, the user is directed to Mollie and they make a payment.

Mollie sends a POST ‘IPN’ request to your site to say payment has been made and they sned the ID of the payment with that request. EE receives the request and sends the ID back to Mollie to pull the payment details from them and update the transaction.

At the same time all of this is happening Mollie will send the user back to the site and with that EE loads the last payment object on transaction (which also has the Mollie payment ID saved to it) and repeats the same same steps that the IPN request does (contacts Mollie and pulls the payment from then, then updates the EE transaction based on their response).

So if every registration using Mollie is failing either:

1. The request sent to Mollie is returning a payment that has not yet completed.
2. There’s an issue with the IPN hitting your site and/or the user is not being directed back to your site.
3. A combination of both, the IPN is hitting your site and the user is getting back to your site, but when EE checks the payment with Mollie is not complete.

I can see that the /transactions/ page on your sites is set to be cached (that’s the page used for the IPN request) which can cause similar issues. So the first step is to exclude EE’s critical pages from all caching, see:

https://eventespresso.com/wiki/setup-nocache-exclusion-rules-event-espresso/

Within every payment made on Mollie.com you can see some actions to the right of the payment: https://monosnap.com/file/fXyPy4FEfQ5nK6kgsGly2A7zGyl3uc

Take a look at a payment made on a registration that didn’t update and check it shows ‘Webhook called successfully’ or does it show something else?


combiwel

September 5, 2019 at 6:20 am

Hi Tony,

The issue is that this worked a few months ago (events on these websites are dependent on school periods, so haven’t been used last few months).

1. The request sent to Mollie is returning a payment that has not yet completed.
==> The request is completed, paid by the user and in mollie and callback have successfully been called (according to mollie)

2. There’s an issue with the IPN hitting your site and the user is not being directed back to your site.
==> History in Mollie doesn’t show that a user has been redirected back to the website. We made a test transaction and that uses has been redirected back to the website and also had a successful callback.

3. A combination of both, the IPN is hitting your site and the user is getting back to your site, but when EE checks the payment with Mollie is not complete.
==> Not sure how to completely exclude this but it happens with all transaction. So that would be some accidents…

Thanks in advance.


Tony

  • Support Staff

September 5, 2019 at 6:45 am

Just to clarify, is the payment object in EE showing as Approved?

Note the Registration status, but the EE Payment within the Transaction.

Go to Event Espresso -> Registrations and find a registration this happened on, click on the TXN Date field to view that registration’s transaction.

It will have a payment assigned to it like this – https://monosnap.com/file/XomLWf7EtaauhnMcytRqsnIvwiNYTJ

What colour is the status bar on the left and what is shown in the ‘Gateway Response’ section?

The issue is that this worked a few months ago (events on these websites are dependent on school periods, so haven’t been used last few months).

Then what has changed on your site since then? Caching been enabled for example?

(Note that regardless of the current issue with Mollie, you’ll need to exclude the pages from caching as I mentioned above)

1. The request sent to Mollie is returning a payment that has not yet completed.
==> The request is completed, paid by the user and in mollie and callback have successfully been called (according to mollie)

In short, the request working correctly does not mean that when EE requested the payment details from Mollie the payment object on their end was ‘paid’.

We’ve seen it before where Mollie payments had been set to paid by the time the user was redirected back to the site, if the Mollie payment returns a status of anything other than paid, the EE payment object does not get updated to Approved.

2. There’s an issue with the IPN hitting your site and the user is not being directed back to your site.
==> History in Mollie doesn’t show that a user has been redirected back to the website. We made a test transaction and that uses has been redirected back to the website and also had a successful callback.

Which callback are you referring to here?

3. A combination of both, the IPN is hitting your site and the user is getting back to your site, but when EE checks the payment with Mollie is not complete.
==> Not sure how to completely exclude this but it happens with all transaction. So that would be some accidents…

That’s why I asked if it happened for every payment, it wasn’t clear from your opening post if it was or not.

This is actually easy enough to check as EE logs the payment requests.

In Event Espresso -> Payment methods -> Logs

Each mollie payment should create at least 3 log entries, like so – https://monosnap.com/file/rowx79AR3DPzoULhohIlYGPFqPgTC6

Click the ID on the left to view each log entry (the TXN ID on the right all link to the same transaction).

The first will be the IPN/Webhook request, as explain that simply posts the ID of the payment and EE then uses that to request the payment from Mollie (we actually already have the payment ID anyway as its created earlier in the request but the IPN identifies which payment the IPN request is for) –
https://monosnap.com/file/Yyn5MePMvV5bwo8Xp0lkIh5jgjHMJE

The next log entry shows all of the details you’ll need, eash one is different so a screenshot from me ont help but you’ll have the EE Payment object section, the IPN data section and the Mollie payment section.

The Mollie Payment section will have a ‘status’, what is that set to in the log?

The support post ‘Payment statusses not correct’ 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