I am trying to connect to a payment processor through magento.
This tutorial is what I am using as my guide:http://excellencemagentoblog.com/blog/2011/10/28/magento-create-custom-payment-method/
I get this error when I try to access payment options under Sales "Fatal error: Class 'Mage_Pay_Helper_Data' not found in C:\xampp\htdocs\magento\app\Mage.php on line 547"
I can post my system.xml and config.xml files if need be
Any help at all would be very much appreciated.
Thanks.
Its just not taking your namespace which you need to fix in the config.xml
Specify the helper in there for example
<helpers>
<modulename>
<class>Namespace_ModuleName_Helper</class>
</modulename>
</helpers>
Please see my config.xml file below and let me know your thoughts:
<?xml version="1.0"?>
<config>
<default>
<payment>
<pay>
<active>1</active>
<model>pay/pay</model>
<order_status>processing</order_status>
<title>Excellence Payment Method</title>
</pay>
</payment>
</default>
<modules>
<Pagayo_Main>
<version>0.1.0</version>
</Pagayo_Main>
</modules>
<global>
<helpers>
<main>
<class>Pagayo_Main_Helper</class>
</main>
</helpers>
</global>
<adminhtml>
<layout>
<updates>
<pagayoall module="PAGAYO_MAIN">
<file>pagayo_main.xml</file>
</pagayoall>
</updates>
</layout>
<acl>
<resources>
<admin>
<children>
<system>
<children>
<config>
<children>
<pagayostore>
<title>Pagayo Extensions Store</title>
</pagayostore>
</children>
</config>
</children>
</system>
</children>
</admin>
</resources>
</acl>
</adminhtml>
</config>
Thanks.
system.xml
<?xml version="1.0"?>
<config>
<tabs>
<pagayo translate="label">
<label>Pagayo</label>
<sort_order>300</sort_order>
</pagayo>
</tabs>
<sections>
<pagayopt003>
<label>Theme Jewelry</label>
<tab>pagayo</tab>
<class>pagayo-section</class>
<frontend_type>text</frontend_type>
<sort_order>300</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<groups>
<generalinformation translate="label">
<label>General Information</label>
<comment><![CDATA[✓ Pagayo Theme Jewelry successfully installed]]></comment>
<expanded>1</expanded>
<sort_order>10</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</generalinformation>
<manual translate="label">
<label>Manual</label>
<comment><![CDATA[<p><b><a href="http://www.pagayo.com/wiki/manuals/" target="_blank">Read manual →</a></b></p><p>On <a href="http://www.pagayo.com" target="_blank">www.pagayo.com</a> you find all manuals for themes and extensions from Pagayo.</p>]]></comment>
<expanded>1</expanded>
<sort_order>20</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</manual>
</groups>
</pagayopt003>
<payment>
<groups>
<pay translate="label" module="pay">
<label>Excellence Payment Module</label>
<sort_order>670</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>0</show_in_store>
<fields>
<active translate="label">
<label>Enabled</label>
<frontend_type>select</frontend_type>
<source_model>adminhtml/system_config_source_yesno</source_model>
<sort_order>1</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>0</show_in_store>
</active>
<order_status translate="label">
<label>New order status</label>
<frontend_type>select</frontend_type>
<source_model>adminhtml/system_config_source_order_status_processing</source_model>
<sort_order>2</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>0</show_in_store>
</order_status>
<title translate="label">
<label>Title</label>
<frontend_type>text</frontend_type>
<sort_order>3</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>0</show_in_store>
</title>
</fields>
</pay>
</groups>
</payment>
</sections>
</config>