Post by miroslavs » Tue Oct 18, 2022 8:16 pm

Hi to all!

I want to know is it possible on OC4 to have catalog public endpoint in my module? Something like:

...index.php?route=extension/company_name/catalog/controller/payment/file_name/method_name

It was possible in version 3, but looks like same approach not working on v4.

Thanks and Regards!

New member

Posts

Joined
Wed Sep 05, 2018 8:41 pm

Post by miroslavs » Wed Oct 19, 2022 2:59 pm

Looks like I will answer to myself.
When I try to open my endpoint into the browser I got html page with message "The page you requested cannot be found!", but when I call the same URL via Postman it works. So I can receive messages on it.

I hope this can help someone else ;)

New member

Posts

Joined
Wed Sep 05, 2018 8:41 pm

Post by miroslavs » Thu Oct 20, 2022 2:44 pm

To be more precise - the path must be: index.php?route=extension/company_name/payment/file_name|method_name.
Keep in mind the last separator must be "|"! If you use "/" you will not open the endpoint but some default 404 page.
At least this is my experience.

New member

Posts

Joined
Wed Sep 05, 2018 8:41 pm
Who is online

Users browsing this forum: No registered users and 4 guests