Version Notes
This is a stable version
Download this release
Release Info
Developer | pureimagination |
Extension | PI_Payment |
Version | 0.1.0 |
Comparing to | |
See all releases |
Version 0.1.0
app/code/community/PI/Pay/Helper/Data.php
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class PI_Pay_Helper_Data extends Mage_Core_Helper_Abstract
|
4 |
+
{
|
5 |
+
|
6 |
+
}
|
app/code/community/PI/Pay/Model/Pay.php
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class PI_Pay_Model_Pay extends Mage_Payment_Model_Method_Abstract
|
3 |
+
{
|
4 |
+
protected $_code = 'pay';
|
5 |
+
}
|
6 |
+
?>
|
app/code/community/PI/Pay/etc/config.xml
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<PI_Pay>
|
5 |
+
<version>0.1.0</version>
|
6 |
+
</PI_Pay>
|
7 |
+
</modules>
|
8 |
+
<global>
|
9 |
+
<models>
|
10 |
+
<pay>
|
11 |
+
<class>PI_pay_Model</class>
|
12 |
+
</pay>
|
13 |
+
</models>
|
14 |
+
<helpers>
|
15 |
+
<pay>
|
16 |
+
<class>PI_Pay_Helper</class>
|
17 |
+
</pay>
|
18 |
+
</helpers>
|
19 |
+
</global>
|
20 |
+
<default>
|
21 |
+
<payment>
|
22 |
+
<pay>
|
23 |
+
<active>1</active>
|
24 |
+
<model>pay/pay</model>
|
25 |
+
<order_status>processing</order_status>
|
26 |
+
<title>Custom Payment</title>
|
27 |
+
<message>Pay with your custom payment</message>
|
28 |
+
</pay>
|
29 |
+
</payment>
|
30 |
+
</default>
|
31 |
+
</config>
|
app/code/community/PI/Pay/etc/system.xml
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<config>
|
3 |
+
<sections>
|
4 |
+
<payment>
|
5 |
+
<groups>
|
6 |
+
<pay translate="label" module="pay">
|
7 |
+
<label>Custom Payment</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>1</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>1</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</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>1</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>1</show_in_store>
|
38 |
+
</title>
|
39 |
+
<message translate="label">
|
40 |
+
<label>Displayed Message</label>
|
41 |
+
<frontend_type>textarea</frontend_type>
|
42 |
+
<sort_order>4</sort_order>
|
43 |
+
<show_in_default>1</show_in_default>
|
44 |
+
<show_in_website>1</show_in_website>
|
45 |
+
<show_in_store>1</show_in_store>
|
46 |
+
</message>
|
47 |
+
<sort_order translate="label">
|
48 |
+
<label>Sort Order</label>
|
49 |
+
<frontend_type>text</frontend_type>
|
50 |
+
<sort_order>5</sort_order>
|
51 |
+
<show_in_default>0</show_in_default>
|
52 |
+
<show_in_website>1</show_in_website>
|
53 |
+
<show_in_store>0</show_in_store>
|
54 |
+
</sort_order>
|
55 |
+
</fields>
|
56 |
+
</pay>
|
57 |
+
</groups>
|
58 |
+
</payment>
|
59 |
+
</sections>
|
60 |
+
</config>
|
app/etc/modules/PI_Pay.xml
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<config>
|
2 |
+
<modules>
|
3 |
+
<PI_Pay>
|
4 |
+
<active>true</active>
|
5 |
+
<codePool>community</codePool>
|
6 |
+
</PI_Pay>
|
7 |
+
</modules>
|
8 |
+
</config>
|
package.xml
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>PI_Payment</name>
|
4 |
+
<version>0.1.0</version>
|
5 |
+
<stability>stable</stability>
|
6 |
+
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
|
7 |
+
<channel>community</channel>
|
8 |
+
<extends/>
|
9 |
+
<summary>This extension adds a new payment method. </summary>
|
10 |
+
<description>IF you want to add your own custom payment method then this extension will help you to add your own payment method without changing any core files .
|
11 |
+
This extension is very helpful for developers and merchants.</description>
|
12 |
+
<notes>This is a stable version</notes>
|
13 |
+
<authors><author><name>pureimagination</name><user>pureimagination</user><email>johncarter15oct@gmail.com</email></author></authors>
|
14 |
+
<date>2014-11-23</date>
|
15 |
+
<time>06:15:59</time>
|
16 |
+
<contents><target name="magecommunity"><dir name="PI"><dir name="Pay"><dir name="Helper"><file name="Data.php" hash="8968796e294ebb2a79d22b15eeeb1801"/></dir><dir name="Model"><file name="Pay.php" hash="3ef5e877ec2741cec0f16679990d901a"/></dir><dir name="etc"><file name="config.xml" hash="4b0ff00fbda169667cf575d9c2a39cc6"/><file name="system.xml" hash="664fc486ae73c651236c7b3fee8f96c3"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="PI_Pay.xml" hash="829a3a12b69d9c3da8b1068a0d9bf352"/></dir></target></contents>
|
17 |
+
<compatible/>
|
18 |
+
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
19 |
+
</package>
|