O'Reilly logo

Magento 1.3: PHP Developer's Guide by Jamie Huskisson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building the base of a payment method

Here, we're going to build the base of a payment method. This is something that won't have a purpose, but to provide us with a base—which we can build on—to create our fuller featured payment method.

It will show us what the bare bones are in order for you to be able to later go on and create a fully functional method later on.

Module declaration

We need to start by declaring our module to the system. We'll do this by creating the file MagentoBook_PaymentModule.xml in /app/etc/modules/ and filling it with the following XML code:

<?xml version="1.0"?> <config> <modules> <MagentoBook_PaymentModule> <active>true</active> <codePool>local</codePool> <depends> <Mage_Payment /> </depends> <version>0.1.0</version> </MagentoBook_PaymentModule> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required