Magento Forum

Payment gateway integration
 
rajeesh
Jr. Member
 
Total Posts:  5
Joined:  2008-08-31
 

I have added the

app/etc/modules/Mage_Paytrace.xml

<config>
<modules>
<!-- declare Mage_NewModule module -->
<Mage_Paytrace>
<!-- this is an active module -->
<active>true</active>
<!-- this module will be located in app/code/local code pool -->
<codePool>local</codePool>
<!-- specify dependencies for correct module loading order -->
<depends>
<Mage_Payment />
</depends>
<!-- declare module’s version information for database updates -->
<version>0.1.0</version>
</Mage_Paytrace>
</modules>
</config>

================================================================================

app/code/local/Mage/Paytrace/etc/config.xml

<config>
<modules>
<Mage_Paytrace>
<version>0.1.0</version>
</Mage_Paytrace>
</modules>

<global>
<!-- declare model group for new module -->
<models>
<!-- model group alias to be used in Mage::getModel(’paytrace/...’) -->
<paytrace>
<!-- base class name for the model group -->
<class>Mage_Paytrace_Model</class>
<resourceModel>paytrace_mysql4</resourceModel>
</paytrace>
<paytrace_mysql4>
<class>Mage_Paytrace_Model_Mysql4</class>
<entities>
<paytrace_debug><table>paytrace_debug</table></paytrace_debug>
</entities>
</paytrace_mysql4>
</models>

<!-- declare resource setup for new module -->
<resources>
<!-- resource identifier -->
<paytrace_setup>
<!-- specify that this resource is a setup resource and used for upgrades -->
<setup>
<!-- which module to look for install/upgrade files in -->
<module>Mage_Paytrace</module>
</setup>
<!-- specify database connection for this resource -->
<connection>
<!-- do not create new connection, use predefined core setup connection -->
<use>core_setup</use>
</connection>
</paytrace_setup>
<paytrace_write>
<connection>
<use>core_write</use>
</connection>
</paytrace_write>
<paytrace_read>
<connection>
<use>core_read</use>
</connection>
</paytrace_read>
</resources>
</global>

<!-- declare default configuration values for this module -->
<default>
<!-- ‘payment’ configuration section (tab) -->
<payment>
<!-- ‘paytrace’ configuration group (fieldset) -->
<paytrace>
<!-- by default this payment method is inactive -->
<active>0</active>
<!-- model to handle logic for this payment method -->
<model>paytrace/paymentMethod</model>
<!-- order status for new orders paid by this payment method -->
<order_status>1</order_status>
<!-- default title for payment checkout page and order view page -->
<title>Paytrace</title>

<cctypes>AE,VI,MC,DI</cctypes>
<payment_action>paytrace</payment_action>
<allowspecific>0</allowspecific>
</paytrace>
</payment>
</default>
</config>

================================================================================

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top