Commerce– Getting a Custom Gateway to appear in the list

Permalink
Hi All,

We are working on creating a custom payment gateway and have followed the instructions onhttp://www.concrete5.org/marketplace/addons/core_commerce/documenta...

We are having trouble getting the custom gateway to appear in the list of "Custom Payment Methods". What is the criteria for getting a gateway to appear in the list?

We have a copy of the default gateway in /models/payments/methods/ and have updated the class name to reflect the new gateway.

Any help on this appreciated.

Thanks,

Nigel.

nige
 
jaredquinn replied on at Permalink Reply
jaredquinn
You need to set your payment type up as a package (located in your /packages directory, and in the installer (controller.php for the package) include the call to add it: e.g.

public function install() {
          $pkg = parent::install();
                  Loader::model('payment/method','core_commerce');
                  CoreCommercePaymentMethod::add('eway', 'E-Way Payment Gateway', false, $pkg);
         }