No automatic payment notification

  • Posts: 220
  • Thank you received: 8
5 months 1 week ago #357274

-- HikaShop version -- : 4.74
-- Joomla version -- : 4.4.0
-- PHP version -- : 8.1.25

Hi,
Since our update to Hikashop 4.7.4 the automatic payment notification in new orders is gone.
After a succesful payment the status of an order is correctly changed to confirmed.
But no payment notification mails are send to customer and shopkeeper.

We use a plugin to connect to accounting program Moneybird. Now this plugin doesnot function as it should because it depends on receiving the automatic payment notification.

While using Hikashop 4.5.0 all worked fine.
We use payment plugin cciDEAL and payment service provider is Mollie.

In the attachment are pictures of an order history in 4.5.0 and in 4.7.4. In 4.5.0 the automatic payment notification is present. In 4.7.4 it's absent.

This problem in Hikashop 4.7.4 also occurred when the website still used Joomla 3.10 and PHP 8.0

What could be the cause?

Regards,
Udo

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 81662
  • Thank you received: 13092
  • MODERATOR
5 months 1 week ago #357276

Hi,

First, I don't think it comes from your update of HikaShop.

So you're saying that the order status of paid orders is still changed automatically by the payment plugin. Can you confirm this ?
Because normally, when a payment plugin automatically confirms an order, it fills the "reason" of the history with "automatic payment notification received".
Based on your screenshots, it seems this was the case before and not the case anymore.
And if the plugin is not automatically confirming the orders, it's normal that HikaShop doesn't send the emails.
And in that case, the problem has to be in the payment plugin.

Supposing that the plugin is still confirming the orders automatically, it's the plugin which tells HikaShop to send the emails. So again, an update wouldn't change anything to this.

Another potential reason would be that you updated your PHP while you still have old overrides in your emails which crash when HikaShop tries to generate the emails. This could lead to the order status being changed without the history being properly updated and the email sent. An easy to check if this is the problem is to go in the System>Emails menu and to try the preview the different emails that you're not receiving anymore.
If the preview fails, then you should see an error message explaining where the problem is in your email override. Once the preview is generating properly, it should then work normally again.

Also, I would recommend checking the PHP error log of your hosting. You might get interesting fatal error logs from there pointing at the problem.

Please Log in or Create an account to join the conversation.

  • Posts: 220
  • Thank you received: 8
5 months 6 days ago #357353

Hi Nicolas,

Thanks for your suggestions.
Indeed, the order status of paid orders is still changed automatically by the payment plugin. At least, that is what you see on the screen. I don't know it that order status really did change.

The problem exists in Joomla 3 and Joomla 4 and PHP 8.1 and PHP 8.1
The PHP error logs don't show any critical information (only PHP warnings).

All previews of the e-mails are okay.
Some e-mails still have HS4.5.0 overrides, I will renew them.

During the testing a discovered a new error. In the order listing I changed the order status of an order to Paid (confirmed). The popup shows the correct mail to send to the customer. But when clicking OK the popup shows a 404 error. The console says: Error: Incorrect contents fetched, please reload. and malformed URI sequence.
After disabling the Moneybird plugin this error is gone.
In HS 4.5.0 that problem didnot exist.

So somehow the communication between the plugin and Hikashop is disturbed after the update.
Someting relevant has changed between versions 4.5.0 and 4.7.4

Regards,
Udo

Please Log in or Create an account to join the conversation.

  • Posts: 81662
  • Thank you received: 13092
  • MODERATOR
5 months 5 days ago #357357

Hi,

So the orders are still automatically confirmed, but the "payment notification" emails are not sent, right ?
Do you see them in the Customers>Emails history menu ? (it could be that they are generated but there is a problem during the sending).
If you deactivate the Moneybird plugin, are the payment notification emails sent ?
I'm thinking it could actually be a problem in that plugin, which needs to be fixed and which leads to the processing of the payment notifiction crashing while the plugin it trying to do its job (maybe because it uses something in HikaShop which changed with the version update).
I couldn't find any mention of this plugin anywhere online. It is something you developed on your end ?
Could you provide a copy of the plugin so that we could look at its code ?

Please Log in or Create an account to join the conversation.

  • Posts: 220
  • Thank you received: 8
5 months 2 days ago #357457

Hi,

You're right, it was a problem in the plugin.
The developer who created the plugin for us had another close look at the code. It was suitable for Joomla 3 and adjustments appeared to be necessary for use in Joomla 4 / Hikashop 4.7.4.

The way of retrieving information of the order data has changed in Hikashop since 4.5.0. He improved the code and now the automatic payment notification and payment mails are back!

Thanks alot for your advice.

Kind regards, Udo

The following user(s) said Thank You: nicolas

Please Log in or Create an account to join the conversation.

Time to create page: 0.063 seconds
Powered by Kunena Forum