Post by kexiao01 » Mon Apr 21, 2025 11:05 am

Hello,
I create a sample payment extension for OpenCart 4. The front end controller is located at extension/sample/catalog/controller/payment/sample.php. I have two public method index() and test().
I can access the index() method using URL index.php?route=extension/sample/payment/sample, but I cannot access test() method. I tried index.php?route=extension/sample/payment/sample/test but it didn't work.
Can someone help me on this?

Thanks,

Newbie

Posts

Joined
Thu Apr 10, 2025 11:56 am

Post by JNeuhoff » Mon Apr 21, 2025 6:11 pm

Should be: index.php?route=extension/sample/payment/sample.test

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member
Online

Posts

Joined
Wed Dec 05, 2007 3:38 am

Who is online

Users browsing this forum: No registered users and 2 guests