CP_Paypalbn - Version 0.0.1

Version Notes

PayPal Partner BN Code

Download this release

Release Info

Developer Commerce Pundit
Extension CP_Paypalbn
Version 0.0.1
Comparing to
See all releases


Version 0.0.1

app/code/community/CP/Paypalbn/Helper/Data.php ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Commerce Pundit Technologies
16
+ * @package CP_Paypalbn
17
+ * @copyright Copyright (c) 2015 Commerce Pundit Technologies. (http://www.commercepundit.com)
18
+ * @author <<Ketan Panchal>>
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ */
21
+ class CP_Paypalbn_Helper_Data extends Mage_Core_Helper_Abstract
22
+ {
23
+
24
+ }
app/code/community/CP/Paypalbn/Model/Config.php ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Commerce Pundit Technologies
16
+ * @package CP_Paypalbn
17
+ * @copyright Copyright (c) 2015 Commerce Pundit Technologies. (http://www.commercepundit.com)
18
+ * @author <<Ketan Panchal>>
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ */
21
+ class CP_Paypalbn_Model_Config extends Mage_Paypal_Model_Config
22
+ {
23
+ /**
24
+ * BN code getter
25
+ * override method
26
+ *
27
+ * @param string $countryCode ISO 3166-1
28
+ */
29
+ public function getBuildNotationCode($countryCode = null)
30
+ {
31
+ if(Mage::getStoreConfig('payapalsetting/paypal/enable',Mage::app()->getStore()) == '1')
32
+ {
33
+ $newBnCode = Mage::getStoreConfig('payapalsetting/paypal/bncode',Mage::app()->getStore());
34
+ return $newBnCode;
35
+ }
36
+
37
+ }
38
+ }
app/code/community/CP/Paypalbn/etc/adminhtml.xml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <acl>
4
+ <resources>
5
+ <admin>
6
+ <children>
7
+ <system>
8
+ <children>
9
+ <config>
10
+ <children>
11
+ <payapalsetting>
12
+ <title>Paypal Partner Programme</title>
13
+ </payapalsetting>
14
+ </children>
15
+ </config>
16
+ </children>
17
+ </system>
18
+ </children>
19
+ </admin>
20
+ </resources>
21
+ </acl>
22
+ </config>
app/code/community/CP/Paypalbn/etc/config.xml ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <CP_Paypalbn>
5
+ <version>0.1.0</version>
6
+ </CP_Paypalbn>
7
+ </modules>
8
+ <frontend>
9
+ <routers>
10
+ <cp_paypalbn>
11
+ <use>standard</use>
12
+ <args>
13
+ <module>CP_Paypalbn</module>
14
+ <frontName>cp_paypalbn</frontName>
15
+ </args>
16
+ </cp_paypalbn>
17
+ </routers>
18
+ </frontend>
19
+ <admin>
20
+ <routers>
21
+ <cp_paypalbn>
22
+ <use>admin</use>
23
+ <args>
24
+ <module>CP_Paypalbn</module>
25
+ <frontName>cp_paypalbn</frontName>
26
+ </args>
27
+ </cp_paypalbn>
28
+ </routers>
29
+ </admin>
30
+ <global>
31
+ <models>
32
+ <cp_paypalbn>
33
+ <class>CP_Paypalbn_Model</class>
34
+ </cp_paypalbn>
35
+ <paypal>
36
+ <rewrite>
37
+ <config>CP_Paypal_Model_Config</config>
38
+ </rewrite>
39
+ </paypal>
40
+ </models>
41
+ <helpers>
42
+ <cp_paypalbn>
43
+ <class>CP_Paypalbn_Helper</class>
44
+ </cp_paypalbn>
45
+ </helpers>
46
+ </global>
47
+ </config>
app/code/community/CP/Paypalbn/etc/system.xml ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <tabs>
4
+ <cp translate="label">
5
+ <label>cp Extensions</label>
6
+ <sort_order>111</sort_order>
7
+ </cp>
8
+ </tabs>
9
+ <sections>
10
+ <payapalsetting translate="label" module="cp_paypalbn">
11
+ <label>PayPal Partner Programme</label>
12
+ <tab>cp</tab>
13
+ <frontend_type>text</frontend_type>
14
+ <sort_order>0</sort_order>
15
+ <show_in_default>1</show_in_default>
16
+ <show_in_website>1</show_in_website>
17
+ <show_in_store>1</show_in_store>
18
+ <groups>
19
+ <paypal translate="label">
20
+ <label>PayPal Partner Programme</label>
21
+ <frontend_type>text</frontend_type>
22
+ <sort_order>0</sort_order>
23
+ <show_in_default>1</show_in_default>
24
+ <show_in_website>1</show_in_website>
25
+ <show_in_store>1</show_in_store>
26
+ <fields>
27
+ <bncode translate="label">
28
+ <label>PayPal BN code</label>
29
+ <frontend_type>text</frontend_type>
30
+ <sort_order>0</sort_order>
31
+ <show_in_default>1</show_in_default>
32
+ <show_in_website>1</show_in_website>
33
+ <show_in_store>1</show_in_store>
34
+ <comment>Example :- XX_XX_MagentoCE</comment>
35
+ </bncode>
36
+ <enable translate="label">
37
+ <label>Enable</label>
38
+ <frontend_type>select</frontend_type>
39
+ <source_model>adminhtml/system_config_source_yesno</source_model>
40
+ <sort_order>0</sort_order>
41
+ <show_in_default>1</show_in_default>
42
+ <show_in_website>1</show_in_website>
43
+ <show_in_store>1</show_in_store>
44
+ </enable>
45
+ </fields>
46
+ </paypal>
47
+ </groups>
48
+ </payapalsetting>
49
+ </sections>
50
+ </config>
app/etc/modules/CP_Paypalbn.xml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <CP_Paypalbn>
5
+ <active>true</active>
6
+ <codePool>community</codePool>
7
+ </CP_Paypalbn>
8
+ </modules>
9
+ </config>
package.xml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>CP_Paypalbn</name>
4
+ <version>0.0.1</version>
5
+ <stability>stable</stability>
6
+ <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>PayPal Partner BN Code</summary>
10
+ <description>PayPal Partner BNCode extension by Commerce Pundit will help you to set partner code for paypal payment method .&lt;br /&gt;&#xD;
11
+ &#xD;
12
+ &lt;b&gt;Overview&lt;/b&gt;&lt;br/&gt;&#xD;
13
+ BNCode Provided to PayPal Partners. PayPalBNCode is used for to identify transactions to PayPal.&#xD;
14
+ BNcodes also track your PayPal payment volume, and help troubleshoot transaction issues. Every product you integrate requires its own unique BNcode.</description>
15
+ <notes>PayPal Partner BN Code</notes>
16
+ <authors><author><name>Commerce Pundit</name><user>CPExtensions</user><email>support@commercepundit.com</email></author></authors>
17
+ <date>2015-08-08</date>
18
+ <time>04:39:57</time>
19
+ <contents><target name="magecommunity"><dir name="CP"><dir name="Paypalbn"><dir name="Helper"><file name="Data.php" hash="e9be2e23ecbaa609b798ba2f94c464d0"/></dir><dir name="Model"><file name="Config.php" hash="eee39d43449d28c8240cf932a13fb976"/></dir><dir name="etc"><file name="adminhtml.xml" hash="5f90c49ebe7c02c1e48d05130a5044d4"/><file name="config.xml" hash="1b8891201e4f43eb12eac93c3ac28505"/><file name="system.xml" hash="f16f3538abcb2efa31ea2f6caad230bf"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="CP_Paypalbn.xml" hash="95adb377c1b5f6b69116f01bf3c39a97"/></dir></target></contents>
20
+ <compatible/>
21
+ <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
22
+ </package>