BT_Custompayment - Version 0.1.0

Version Notes

This extension adds a new payment method on checkout page. it is very useful for developer to understand the payment module.

Download this release

Release Info

Developer BluethinkIT
Extension BT_Custompayment
Version 0.1.0
Comparing to
See all releases


Version 0.1.0

app/code/community/BT/Custompayment/Helper/Data.php ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class BT_Custompayment_Helper_Data extends Mage_Core_Helper_Abstract
4
+ {
5
+
6
+ }
app/code/community/BT/Custompayment/Model/Custompayment.php ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class BT_Custompayment_Model_Custompayment extends Mage_Payment_Model_Method_Abstract
4
+ {
5
+
6
+ protected $_code = 'custompayment';
7
+
8
+ }
app/code/community/BT/Custompayment/etc/config.xml ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <BT_Custompayment>
5
+ <version>0.1.0</version>
6
+ </BT_Custompayment>
7
+ </modules>
8
+ <frontend>
9
+ <routers>
10
+ <custompayment>
11
+ <use>standard</use>
12
+ <args>
13
+ <module>BT_Custompayment</module>
14
+ <frontName>custompayment</frontName>
15
+ </args>
16
+ </custompayment>
17
+ </routers>
18
+ <layout>
19
+ <updates>
20
+ <custompayment>
21
+ <file>custompayment.xml</file>
22
+ </custompayment>
23
+ </updates>
24
+ </layout>
25
+ </frontend>
26
+ <admin>
27
+ <routers>
28
+ <custompayment>
29
+ <use>admin</use>
30
+ <args>
31
+ <module>BT_Custompayment</module>
32
+ <frontName>custompayment</frontName>
33
+ </args>
34
+ </custompayment>
35
+ </routers>
36
+ </admin>
37
+ <adminhtml>
38
+
39
+ <acl>
40
+ <resources>
41
+ <all>
42
+ <title>Allow Everything</title>
43
+ </all>
44
+ <admin>
45
+ <children>
46
+ <BT_Custompayment>
47
+ <title>Custompayment Module</title>
48
+ <sort_order>10</sort_order>
49
+ </BT_Custompayment>
50
+ </children>
51
+ </admin>
52
+ </resources>
53
+ </acl>
54
+ <layout>
55
+ <updates>
56
+ <custompayment>
57
+ <file>custompayment.xml</file>
58
+ </custompayment>
59
+ </updates>
60
+ </layout>
61
+ </adminhtml>
62
+ <global>
63
+ <models>
64
+ <custompayment>
65
+ <class>BT_Custompayment_Model</class>
66
+ <resourceModel>custompayment_mysql4</resourceModel>
67
+ </custompayment>
68
+ <custompayment_mysql4>
69
+ <class>BT_Custompayment_Model_Mysql4</class>
70
+ <entities>
71
+ <custompayment>
72
+ <table>custompayment</table>
73
+ </custompayment>
74
+ </entities>
75
+ </custompayment_mysql4>
76
+ </models>
77
+ <resources>
78
+ <custompayment_setup>
79
+ <setup>
80
+ <module>BT_Custompayment</module>
81
+ </setup>
82
+ <connection>
83
+ <use>core_setup</use>
84
+ </connection>
85
+ </custompayment_setup>
86
+ <custompayment_write>
87
+ <connection>
88
+ <use>core_write</use>
89
+ </connection>
90
+ </custompayment_write>
91
+ <custompayment_read>
92
+ <connection>
93
+ <use>core_read</use>
94
+ </connection>
95
+ </custompayment_read>
96
+ </resources>
97
+ <blocks>
98
+ <custompayment>
99
+ <class>BT_Custompayment_Block</class>
100
+ </custompayment>
101
+ </blocks>
102
+ <helpers>
103
+ <custompayment>
104
+ <class>BT_Custompayment_Helper</class>
105
+ </custompayment>
106
+ </helpers>
107
+ </global>
108
+
109
+ <default>
110
+ <payment>
111
+ <custompayment>
112
+ <active>1</active>
113
+ <model>custompayment/custompayment</model>
114
+ <order_status>processing</order_status>
115
+ <title>BT Payment Method</title>
116
+ </custompayment>
117
+ </payment>
118
+ </default>
119
+
120
+ </config>
app/code/community/BT/Custompayment/etc/system.xml ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <config>
3
+ <sections>
4
+ <payment>
5
+ <groups>
6
+ <custompayment translate="label" module="custompayment">
7
+ <label>BT Payment Module</label>
8
+ <sort_order>670</sort_order>
9
+ <show_in_default>1</show_in_default>
10
+ <show_in_website>1</show_in_website>
11
+ <show_in_store>0</show_in_store>
12
+ <fields>
13
+ <active translate="label">
14
+ <label>Enabled</label>
15
+ <frontend_type>select</frontend_type>
16
+ <source_model>adminhtml/system_config_source_yesno</source_model>
17
+ <sort_order>1</sort_order>
18
+ <show_in_default>1</show_in_default>
19
+ <show_in_website>1</show_in_website>
20
+ <show_in_store>0</show_in_store>
21
+ </active>
22
+ <order_status translate="label">
23
+ <label>New order status</label>
24
+ <frontend_type>select</frontend_type>
25
+ <source_model>adminhtml/system_config_source_order_status_processing</source_model>
26
+ <sort_order>2</sort_order>
27
+ <show_in_default>1</show_in_default>
28
+ <show_in_website>1</show_in_website>
29
+ <show_in_store>0</show_in_store>
30
+ </order_status>
31
+ <title translate="label">
32
+ <label>Title</label>
33
+ <frontend_type>text</frontend_type>
34
+ <sort_order>3</sort_order>
35
+ <show_in_default>1</show_in_default>
36
+ <show_in_website>1</show_in_website>
37
+ <show_in_store>0</show_in_store>
38
+ </title>
39
+ </fields>
40
+ </custompayment>
41
+ </groups>
42
+ </payment>
43
+ </sections>
44
+ </config>
app/etc/modules/BT_Custompayment.xml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <BT_Custompayment>
5
+ <active>true</active>
6
+ <codePool>community</codePool>
7
+ </BT_Custompayment>
8
+ </modules>
9
+ </config>
package.xml ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>BT_Custompayment</name>
4
+ <version>0.1.0</version>
5
+ <stability>stable</stability>
6
+ <license uri="http://opensource.org/licenses/osl-3.0.php">Open Source Licence (OSL)</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>This extension adds a new payment method. </summary>
10
+ <description>Custom Payment Method&#xD;
11
+ &#xD;
12
+ This extension will help you to add your own payment method without changing any core files .&#xD;
13
+ &#xD;
14
+ This extension is very helpful for developers and merchants.&#xD;
15
+ &#xD;
16
+ Features:&#xD;
17
+ &#xD;
18
+ No core file changed.&#xD;
19
+ A small useful extension for payment.&#xD;
20
+ Works on Magento 1.6 and above.&#xD;
21
+ &#xD;
22
+ Supported Features:&#xD;
23
+ &#xD;
24
+ Admin&#xD;
25
+ go to System-&gt;Configuration-&gt;Sales-&gt;Payment Method-&gt;BT Payment Module now you can enable/disable this extension from admin.&#xD;
26
+ &#xD;
27
+ A new payment method is displayed automatically at the time of checkout on payment page.&#xD;
28
+ &#xD;
29
+ &#xD;
30
+ &#xD;
31
+ Installation:&#xD;
32
+ &#xD;
33
+ Install Extension Using Magento Connect&#xD;
34
+ Enable it from admin&#xD;
35
+ &#xD;
36
+ &#xD;
37
+ &#xD;
38
+ Contact Us&#xD;
39
+ &#xD;
40
+ For any assistance, please emails us at pramodgupta.bt@gmail.com&#xD;
41
+ &#xD;
42
+ Give us your valueable feedbacks to improve this extension, we will surely consider your feedback in the next release version of the extension</description>
43
+ <notes>This extension adds a new payment method on checkout page. it is very useful for developer to understand the payment module. &#xD;
44
+ </notes>
45
+ <authors><author><name>BluethinkIT</name><user>Bluethink</user><email>pramodgupta.bt@gmail.com</email></author></authors>
46
+ <date>2014-08-20</date>
47
+ <time>19:46:18</time>
48
+ <contents><target name="magecommunity"><dir name="BT"><dir name="Custompayment"><dir name="Helper"><file name="Data.php" hash="110ad8034b6e498652e199407b19bd78"/></dir><dir name="Model"><file name="Custompayment.php" hash="e4bfe2884f8923e8c254128b8551ab56"/></dir><dir name="etc"><file name="config.xml" hash="2b8f3d01cbda0838383bd2cf2e2f4ca6"/><file name="system.xml" hash="76c24b295cdc997c66312174d89cab4e"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="BT_Custompayment.xml" hash="938ab406b8e373bc46e4d730b7e62a3e"/></dir></target></contents>
49
+ <compatible/>
50
+ <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
51
+ </package>