#446 DIBS Easy issues

Posted in ‘Technical Support / Bugs’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by ulric gress on Monday, 08 September 2025 14:36 UTC

ulric gress

Hey Olivier, I am back 🙂

As a continuation of our work on the J2Commerce purchase flow, we have now reached the payment step. Using the **DIBS Easy payment plugin** in Joomla 5, we see the following:

1. Functions work fine: product can be added to cart, checkout proceeds.
2. DIBS Easy opens the payment window, payment details can be entered, and *“Payment successful”* is confirmed.
3. However, after payment, the redirect back to the selected **thank-you article** results in a **404 error**.
4. The customer is not notified by email automatically.
5. Stock is not reduced after payment automatically.

Could you please check this behavior like it works in J3?

Best regards,
Ulric

Olivier

Hello Ulric,

I looked at the Joomla 3 version and to be honest, those 2 versions are nearly identical, except for the updated API calls to Joomla.

However, I identified where the possible issue could be and issued a patched version.

Please let me know if that fixes the problem on your end.

Thank you!

(Unzip the zipped file and install the included zip version)

Olivier.

Growing Together

Help us get back to #1 in the Joomla Extension Directory by leaving us a 5-Star review here.

ulric gress

Hello Olivier,

Thanks again for your help 🙂

Unfortunately DIBS Easy is still giving issues in Joomla 5:

  1. Everything works fine until the customer clicks Pay. The DIBS Easy window confirms “Payment successful”, but on return to Joomla 5 the redirect to the thank-you page results in a 404.

  2. In the backend the order is created, but with status unpaid. As a result, the customer is not notified by email (status: unpaid), even though the payment was confirmed in the DIBS Easy window.

  3. I’m not sure at which point stock reduction should occur in the payment flow — maybe you can clarify how it should behave?

  4. The thank-you article is published. Below are the two return URLs I see:

J3 (works):
https://williamsrejser.dk/checkout/confirmPayment?orderpayment_type=payment_dibseasy&paction=display&paymentid=cbd91a9a8cfe460f9b682cc61d12e474

J5 (404):
https://williamsrejser.dk/wrj5/component/j2store/confirmPayment?orderpayment_type=payment_dibseasy&paction=display&Itemid=130&paymentid=4229d1a74ecc4bbf813def41b5e2c53d

Could the difference in return URLs explain what is happening? Or do you think there is something obvious I might have overlooked?

Looking forward to your thoughts.

Best, Ulric

Olivier

Hi Ulric,

yes, the return URL is the problem.

Are you missing a checkout menu item in your new configuration? The URL is created without finding it.

Under Joomla 5, the URL should probably be https://williamsrejser.dk/wrj5/checkout/confirmPayment?..., not https://williamsrejser.dk/wrj5/component/j2store/confirmPayment?...

Olivier.

Growing Together

Help us get back to #1 in the Joomla Extension Directory by leaving us a 5-Star review here.

ulric gress

Hi Olivier,

Thanks for pointing me to the checkout menu item. Just to clarify: the site is upgraded from J3/J2Store3 to J5/J2Commerce4, and the Checkout menu item was already present. To eliminate any upgrade issues I  recreated both Cart and Checkout items in J5 (they are published and visible now).

However, the return URL after DIBS Easy payment is still not resolved correctly. Instead of attaching the Checkout menu path and the thank-you article (ID=14), it still falls back to /component/j2store/… as below:

https://williamsrejser.dk/wrj5/component/j2store/confirmPayment?orderpayment_type=payment_dibseasy&paction=display&Itemid=550&paymentid=f1aa39b7386d4faea4eeb51ac9401347

I assume that a correct return URL should trigger the final confirmation step (reservation/confirmed) and send out the email notifications to customer and shop admin, as well as reduce stock. And then we’re done

Best regards from me and DIBS Easy,
Ulric

Olivier

Thanks Ulric, that helps.

Please try the attached version, and let me know if the paths are correct now. I changed the way URLs are created.

Olivier.

Growing Together

Help us get back to #1 in the Joomla Extension Directory by leaving us a 5-Star review here.

ulric gress

Sorry Olivier,

But thanks for the new build. I uninstalled the old DIBS Easy plugin completely and then installed this new version fresh (not just an update).

After testing, the return URL is still resolved via the component route:

https://williamsrejser.dk/wrj5/component/j2store/?Itemid=550&task=confirmPayment&orderpayment_type=payment_dibseasy&paction=display&paymentid=ebeaa5b6b1ab49af88fec42e27989b41

It should go through the checkout path, not /component/j2store/, and the thank-you article is still not applied. As a result the order remains unpaid, no emails are sent, and stock is not reduced.

Do you think the router is still missing the Checkout Itemid on Joomla 5, or is there another step I should adjust?

Best,
Ulric

ulric gress

But its a 304 now, not a 404 as before – Ulric

Olivier

There is definitely an issue with the router or the lack of info the router is getting.

Could you edit this ticket and add the credentials for your site so I can check the configuration? Thank you!

Olivier.

Growing Together

Help us get back to #1 in the Joomla Extension Directory by leaving us a 5-Star review here.

System Task
System Task
The ticket information has been edited by ulric gress (design@gress.dk).

ulric gress

Hi Olivier,

Thanks for confirming. I’ve now added the credentials to this ticket so you can log in and check the configuration.

Thank you for sticking with me on this.

Best regards,
Ulric

Olivier

Ulric,

it looks like you are missing a 'thank you' menu item page for order confirmation.

That could be the issue. I may then have to revert the last change I made to the Dibs add-on for it to work, but please look if that makes a difference.

Olivier.

Growing Together

Help us get back to #1 in the Joomla Extension Directory by leaving us a 5-Star review here.

ulric gress

Olivier,

I created a hidden menu item pointing to the thank-you article (ID 14) and tested again. The return URL is still resolved via the component route:

https://williamsrejser.dk/wrj5/component/j2store/?Itemid=550&task=confirmPayment&orderpayment_type=payment_dibseasy&paction=display&paymentid=7a0c2f6e53434b1b90074d6b82f4e536

Would you like to revert the last change you made to the DIBS add-on, or is there another step I should adjust?

Ulric

Olivier

Sorry, I was not clear enough.

I created a J2Commerce 'thank you' page for you (hidden), it is not a menu item linking a thank you article. It's a specific page.

Can you try again? Then I'll see how to adjust the Dibs add-on, if needed.

Olivier.

Growing Together

Help us get back to #1 in the Joomla Extension Directory by leaving us a 5-Star review here.

ulric gress

Olivier,

Thanks for clarifying. I’ll look into this first thing tomorrow morning and get back to you with the result.

Thanks again,
Ulric

Olivier

Perfect. Thanks!

Olivier.

Growing Together

Help us get back to #1 in the Joomla Extension Directory by leaving us a 5-Star review here.

ulric gress

Olivier,

I tested with the new J2Commerce thank-you page you created for me:

So in both cases the return still fails with 403. Would enabling Joomla debugging help to see what is happening?

“Wow, DIBS really is a pain at the moment.”

Thanks, Ulric

ulric gress

Hi Olivier,

I want to be honest here: I haven’t done anything myself except test. I asked ChatGPT for help, and it generated a new `payment_dibseasy.php` for me. I renamed the original file and tried the new one — and suddenly everything worked. Confirmed payment, mail sending, and stock reduction are now all working correctly.

chatGPT: The patch addressed the way the return URL was built. Previously it was missing the Checkout Itemid. After changing it so the full query string (including Itemid) is passed to `Route::_()`, the return now resolves correctly to `/checkout/confirmPayment?...` and the order completes as expected.

I don’t fully understand the changes or their wider impact on the rest of the DIBS plugin or J2Commerce. I just see that it works. I’ve attached both the original and the ChatGPT-modified file — I’m sure you will understand it better than me, and it’s important that we get the official plugin updated so future updates don’t overwrite the fix.

Maybe you can use it as input.

All the Best,
Ulric

Olivier

Hi Ulric,

I would still try the original Dibs plugin before my changes, because the key missing piece was the 'Thank you' menu item (which I should have caught early on). 

I would definitely like to check what AI spit out to make it work, modify the Dibs payment plugin and send it back to you for testing.

Unfortunately, there was no file attached to your ticket. Php or zip files are usually considered 'high security risk' and are taken out of the ticket when sent. Can you send the files to olivier@j2commerce.com? Thank you!

Olivier.

Growing Together

Help us get back to #1 in the Joomla Extension Directory by leaving us a 5-Star review here.

ulric gress

God morning America,

Got it — I’ll follow your guidance and test again with the original DIBS plugin now that the Thank you menu item exists but which one. The original from j2commerce.com?

But I have done i think in my previous ticket?

I’ll also email you the two files (original + the ChatGPT-modified payment_dibseasy.php) to olivier@j2commerce.com right away. If needed, I can zip them (or rename to .txt) to get past filters.

For context, the change that made it work on my side was simply: building the full confirmPayment URL (including Itemid) and passing that whole query to Route::_(), so it resolves via /checkout/confirmPayment?... instead of /component/j2store/....

Thanks again — looking forward to your exact plans and thoughts.

Best regards,
Ulric

Olivier

Cool Ulric, thanks.

The changes you made seem to be actually what the plugin was doing BEFORE my changes :-) 

I will confirm once I receive the files.

Olivier.

Growing Together

Help us get back to #1 in the Joomla Extension Directory by leaving us a 5-Star review here.

Olivier

Ok, I checked the file you sent me. It does everything like the old plugin but adds a complementary function to get the itemId.

Note that the itemId was already present in your initial URL so I would suspect the original plugin should work.

I will update the Dibs plugin still as it has some useful code formating but if you are interested, you can install the original version (before my changes) to see if it is working. NOT required, but that would confirm it was just an issue with the  missing menu item in the configuration and this will help troubleshoot similar issues in the future for other users who may run into the same problem.

Olivier.

Growing Together

Help us get back to #1 in the Joomla Extension Directory by leaving us a 5-Star review here.

Olivier

Ulric,

here is the final version.

Olivier.

Growing Together

Help us get back to #1 in the Joomla Extension Directory by leaving us a 5-Star review here.

ulric gress

Hi Olivier,

I ran some tests to compare as you suggested:

1. J2C 4.0.18 PRO + original DIBS 4.0 from j2commerce.com**
– Payment successful in DIBS
– Return URL:
`https://williamsrejser.dk/wrj5/component/j2store/confirmPayment?orderpayment_type=payment_dibseasy&paction=display&Itemid=550&paymentid=db3937e7cd0b471b99b7130ff0c23741`
– No mail sent, stock not reduced

2. J2C 4.0.18 PRO + your latest DIBS 4.0.1
– Payment successful in DIBS
– Return URL resolves correctly
– Mails sent, stock reduced
– Works both with J2Commerce Order Confirmation menu active and deactivated

From my side, it looks like the key is the updated DIBS Easy plugin (4.0.1).
What do you suggest as the next step?

Autumn regards,
Ulric

Olivier

Ok, thanks for all the testing, Ulric, very helpful!

We can leave it at that, I will release the Dibs plugin you already have (4.0.1) since it is fixing the payment issues.

Olivier.

Growing Together

Help us get back to #1 in the Joomla Extension Directory by leaving us a 5-Star review here.

ulric gress

Thanks Olivier,

That’s perfect — thank you for all your help and guidance, and for sticking with this issue through to the end.
Great to hear DIBS Easy 4.0.1 will be the official release. I look forward to using it on my other J5 sites as well.

Best for now, Ulric

Stay Updated

Subscribe for free and be the first to know about the latest features, updates, and new additions.