O'Reilly logo

Getting Started with Magento Extension Development by Branko Ajzele

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

Defining your payment method

Now that we have a clear picture on different elements that comprise the single payment method, let's define one:

  1. Edit the app/code/community/Foggyline/Stripe/etc/config.xml file by adding the following code to it. This defines a model class group that we will use later for further defining the config | default | payment XML element and a helper class group.
    <?xml version="1.0" encoding="UTF-8"?>
    <config>
        <!-- ... -->
        <global>
            <models>
                <foggyline_stripe>
                    <class>Foggyline_Stripe_Model</class>
                </foggyline_stripe>
            </models>
            <helpers>
                <foggyline_stripe>
                    <class>Foggyline_Stripe_Helper</class>
                </foggyline_stripe>
            </helpers>
        </global>
        <!-- ... -->
  2. Edit the app/code/community/Foggyline/Stripe/etc/config.xml file by adding the ...

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