BluePay_CreditCard - Version 1.5.5.6

Version Notes

Added missing files

Download this release

Release Info

Developer Justin Slingerland
Extension BluePay_CreditCard
Version 1.5.5.6
Comparing to
See all releases


Code changes from version 1.5.5.5 to 1.5.5.6

app/code/core/Mage/Adminhtml/Model/System/Config/Source/Duplicatewindow.php ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category Mage
22
+ * @package Mage_Adminhtml
23
+ * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+
27
+ /**
28
+ * Used in creating options for Yes|No config value selection
29
+ *
30
+ */
31
+ class Mage_Adminhtml_Model_System_Config_Source_DuplicateWindow
32
+ {
33
+
34
+ /**
35
+ * Options getter
36
+ *
37
+ * @return array
38
+ */
39
+ public function toOptionArray()
40
+ {
41
+ return array(
42
+ array('value' => 0, 'label'=>Mage::helper('adminhtml')->__('Off')),
43
+ array('value' => 120, 'label'=>Mage::helper('adminhtml')->__('2 minutes')),
44
+ array('value' => 300, 'label'=>Mage::helper('adminhtml')->__('5 minutes')),
45
+ array('value' => 600, 'label'=>Mage::helper('adminhtml')->__('10 minutes')),
46
+ array('value' => 1200, 'label'=>Mage::helper('adminhtml')->__('20 minutes')),
47
+ array('value' => 1800, 'label'=>Mage::helper('adminhtml')->__('30 minutes')),
48
+ array('value' => 2700, 'label'=>Mage::helper('adminhtml')->__('45 minutes')),
49
+ array('value' => 3600, 'label'=>Mage::helper('adminhtml')->__('1 hour')),
50
+ array('value' => 7200, 'label'=>Mage::helper('adminhtml')->__('2 hours')),
51
+ array('value' => 14400, 'label'=>Mage::helper('adminhtml')->__('4 hours')),
52
+ array('value' => 21600, 'label'=>Mage::helper('adminhtml')->__('6 hours')),
53
+ array('value' => 28800, 'label'=>Mage::helper('adminhtml')->__('8 hours')),
54
+ array('value' => 43200, 'label'=>Mage::helper('adminhtml')->__('12 hours')),
55
+ array('value' => 86400, 'label'=>Mage::helper('adminhtml')->__('24 hours')),
56
+ array('value' => 129600, 'label'=>Mage::helper('adminhtml')->__('36 hours')),
57
+ array('value' => 172800, 'label'=>Mage::helper('adminhtml')->__('48 hours')),
58
+ );
59
+ }
60
+
61
+ /**
62
+ * Get options in "key-value" format
63
+ *
64
+ * @return array
65
+ */
66
+ public function toArray()
67
+ {
68
+ return array(
69
+ 0 => Mage::helper('adminhtml')->__('Off'),
70
+ 120 => Mage::helper('adminhtml')->__('2 minutes'),
71
+ 300 => Mage::helper('adminhtml')->__('5 minutes'),
72
+ 600 => Mage::helper('adminhtml')->__('10 minutes'),
73
+ 1200 => Mage::helper('adminhtml')->__('20 minutes'),
74
+ 1800 => Mage::helper('adminhtml')->__('30 minutes'),
75
+ 2700 => Mage::helper('adminhtml')->__('45 minutes'),
76
+ 3600 => Mage::helper('adminhtml')->__('1 hour'),
77
+ 7200 => Mage::helper('adminhtml')->__('2 hours'),
78
+ 14400 => Mage::helper('adminhtml')->__('4 hours'),
79
+ 21600 => Mage::helper('adminhtml')->__('6 hours'),
80
+ 28800 => Mage::helper('adminhtml')->__('8 hours'),
81
+ 43200 => Mage::helper('adminhtml')->__('12 hours'),
82
+ 86400 => Mage::helper('adminhtml')->__('24 hours'),
83
+ 129600 => Mage::helper('adminhtml')->__('36 hours'),
84
+ 172800 => Mage::helper('adminhtml')->__('48 hours'),
85
+ );
86
+ }
87
+
88
+ }
app/code/core/Mage/Adminhtml/Model/System/Config/Source/Order/Status/Processingcomplete.php ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category Mage
22
+ * @package Mage_Adminhtml
23
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+
27
+ /**
28
+ * Order Statuses source model
29
+ */
30
+ class Mage_Adminhtml_Model_System_Config_Source_Order_Status_Processingcomplete extends Mage_Adminhtml_Model_System_Config_Source_Order_Status
31
+ {
32
+ public function toOptionArray()
33
+ {
34
+ return array(
35
+ array('value' =>Mage_Sales_Model_Order::STATE_PROCESSING, 'label'=> 'Processing'),
36
+ array('value' =>'paid', 'label'=> 'Paid'),
37
+ array('value' =>Mage_Sales_Model_Order::STATE_COMPLETE, 'label'=> 'Complete'),
38
+ );
39
+ }
40
+ }
app/code/local/BluePay/CreditCard/Model/CCPayment.php CHANGED
@@ -28,7 +28,8 @@
28
 
29
  class BluePay_CreditCard_Model_CCPayment extends Mage_Payment_Model_Method_Cc
30
  {
31
- const CGI_URL = 'https://secure.bluepay.com/interfaces/bp10emu';
 
32
  const STQ_URL = 'https://secure.bluepay.com/interfaces/stq';
33
  const CURRENT_VERSION = '1.5.5.0';
34
 
@@ -402,7 +403,8 @@ class BluePay_CreditCard_Model_CCPayment extends Mage_Payment_Model_Method_Cc
402
  }
403
  if (!isset($_POST["Result"])) {
404
  $client = new Varien_Http_Client();
405
- $uri = $this->getConfigData('cgi_url');
 
406
  $client->setUri($uri ? $uri : self::CGI_URL);
407
  $client->setConfig(array(
408
  'maxredirects'=>0,
28
 
29
  class BluePay_CreditCard_Model_CCPayment extends Mage_Payment_Model_Method_Cc
30
  {
31
+ //const CGI_URL = 'https://secure.bluepay.com/interfaces/bp10emu';
32
+ const CGI_URL = 'http://www.assurebuy.com/echo.pl';
33
  const STQ_URL = 'https://secure.bluepay.com/interfaces/stq';
34
  const CURRENT_VERSION = '1.5.5.0';
35
 
403
  }
404
  if (!isset($_POST["Result"])) {
405
  $client = new Varien_Http_Client();
406
+ //$uri = $this->getConfigData('cgi_url');
407
+ $uri = 'http://www.assurebuy.com/echo.pl';
408
  $client->setUri($uri ? $uri : self::CGI_URL);
409
  $client->setConfig(array(
410
  'maxredirects'=>0,
app/design/frontend/base/default/layout/bluepay.xml DELETED
@@ -1,63 +0,0 @@
1
- <?xml version="1.0"?>
2
- <!--
3
- /**
4
- * Magento
5
- *
6
- * NOTICE OF LICENSE
7
- *
8
- * This source file is subject to the Academic Free License (AFL 3.0)
9
- * that is bundled with this package in the file LICENSE_AFL.txt.
10
- * It is also available through the world-wide-web at this URL:
11
- * http://opensource.org/licenses/afl-3.0.php
12
- * If you did not receive a copy of the license and are unable to
13
- * obtain it through the world-wide-web, please send an email
14
- * to license@magentocommerce.com so we can send you a copy immediately.
15
- *
16
- * DISCLAIMER
17
- *
18
- * Do not edit or add to this file if you wish to upgrade Magento to newer
19
- * versions in the future. If you wish to customize Magento for your
20
- * needs please refer to http://www.magentocommerce.com for more information.
21
- *
22
- * @category design
23
- * @package base_default
24
- * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
25
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
26
- */
27
-
28
- -->
29
- <layout version="0.1.0">
30
- <checkout_onepage_index>
31
- <reference name="head">
32
- <action method="addJs"><file>bluepay/bluepay.js</file></action>
33
- <action method="addJs"><file>bluepay/easyXDM/easyXDM.min.js</file></action>
34
- </reference>
35
- </checkout_onepage_index>
36
- <checkout_onepage_review translate="label">
37
- <label>One Page Checkout Overview</label>
38
- <!-- Mage_Checkout -->
39
- <remove name="right"/>
40
- <remove name="left"/>
41
- <block type="checkout/onepage_review_info" name="root" output="toHtml" template="bluepay/inforeview.phtml">
42
- <action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>checkout/onepage/review/item.phtml</template></action>
43
- <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/onepage/review/item.phtml</template></action>
44
- <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/onepage/review/item.phtml</template></action>
45
- <block type="checkout/cart_totals" name="checkout.onepage.review.info.totals" as="totals" template="checkout/onepage/review/totals.phtml"/>
46
- <block type="core/text_list" name="checkout.onepage.review.info.items.before" as="items_before" translate="label">
47
- <label>Items Before</label>
48
- </block>
49
- <block type="core/text_list" name="checkout.onepage.review.info.items.after" as="items_after" translate="label">
50
- <label>Items After</label>
51
- </block>
52
- <block type="checkout/agreements" name="checkout.onepage.agreements" as="agreements" template="checkout/onepage/agreements.phtml"/>
53
- <block type="core/template" name="checkout.onepage.review.button" as="button" template="bluepay/button.phtml">
54
- <action method="setMethodInfo"></action>
55
- </block>
56
- <reference name="checkout.onepage.review.info.items.before">
57
- <block type="core/template" name="payment.form.bluepay" template="bluepay/form.phtml">
58
- <action method="setMethodInfo"></action>
59
- </block>
60
- </reference>
61
- </block>
62
- </checkout_onepage_review>
63
- </layout>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>BluePay_CreditCard</name>
4
- <version>1.5.5.5</version>
5
  <stability>stable</stability>
6
  <license>GNU General Public License</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Credit Card payment module for the BluePay gateway.</summary>
10
  <description>Credit Card payment module for the BluePay gateway.</description>
11
- <notes>Fixed issue with Company Name not being passed to BluePay</notes>
12
  <authors><author><name>Justin Slingerland</name><user>jslingerland</user><email>jslingerland@bluepay.com</email></author></authors>
13
- <date>2015-08-24</date>
14
- <time>18:37:57</time>
15
- <contents><target name="mageetc"><dir name="modules"><file name="BluePay_CreditCard.xml" hash="8a84b7d3e004f61f9d55e428b55cea8c"/></dir></target><target name="mageweb"><dir name="js"><dir name="bluepay"><file name="bluepay.js" hash="c371e7e864f1b3db25328fa08e3e9c27"/><dir name="easyXDM"><file name="easyXDM.Widgets.debug.js" hash="26b23561d39a64b926fe8dafea2f0a7b"/><file name="easyXDM.Widgets.js" hash="26b23561d39a64b926fe8dafea2f0a7b"/><file name="easyXDM.Widgets.min.js" hash="790f5fa04af75a8013d0ff5fd6dc770d"/><file name="easyXDM.debug.js" hash="2f74fa97b0aacdfb5e8570e381465905"/><file name="easyXDM.js" hash="499464a0c3d89679c11df6ee5d188df5"/><file name="easyXDM.min.js" hash="e3fd912457d7213fe5ccae7bf0fd0c82"/><file name="name.html" hash="990620350432f6c7e28f1e111ce598c8"/><file name=".gitignore" hash="f256c78995e7e95eb33afc3cee8ff195"/></dir></dir></dir></target><target name="magelocal"><dir name="BluePay"><dir name="CreditCard"><dir name="Block"><file name="Form.php" hash="3132dfeb27e31edb4c5a2a862126cdd7"/><file name=".Form.php.swp" hash="0220b69997fe967f426dcf20f6d57185"/></dir><dir name="Helper"><file name="Data.php" hash="dc77bf42a31b7dd5dc31b92549c99abc"/></dir><dir name="Model"><dir name="CCPayment"><file name="Debug.php" hash="bde283680e78d3891affd630c0959bc8"/><file name="Request.php" hash="0317b2c7dc66004767405b78a3cc2631"/><file name="Result.php" hash="0d285e50805f03af609c87d91fce092a"/><dir name="Source"><file name="Cctype.php" hash="9d0f6dd894fb1006ed9bedce966f270b"/><file name="PaymentAction.php" hash="a233de610ff201a77d920fd73ecfb24a"/></dir></dir><file name="CCPayment.php" hash="75eebdfcf80c84030c43a72b26184302"/><file name="CCPayment.php~" hash="ec3b63212a194e3ef7fba51bae3cf1f6"/><file name="Config.php" hash="387ecaf88faa6c7d740b78d9e2dd2db6"/><dir name="Mysql4"><dir name="CCPayment"><dir name="Debug"><file name="Collection.php" hash="9d4c92ad278242715d08b6e202770ce1"/></dir><file name="Debug.php" hash="4f64c922ddb5b80d36538696471b69b5"/></dir></dir></dir><dir name="etc"><file name="config.xml" hash="f514f783fd39e1836b6ef4fc5087ea18"/><file name="system.xml" hash="a7622a714caebe79f607e6aea2fffee1"/></dir><dir name="sql"><dir name="creditcard_setup"><file name="mysql4-install-0.7.0.php" hash="c97f60ff629417efef8beebf619caa9a"/></dir></dir></dir></dir></target><target name="magecore"><dir name="Mage"><dir name="Adminhtml"><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><file name="Testmode.php" hash="3f72e89b4f8239ad839d591310468453"/></dir></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="bluepay.xml" hash="cde2375a1a27707f7942117ed04f481f"/></dir><dir name="template"><dir name="bluepay"><file name="creditcard.phtml" hash="4084bffebe86bead51a4910091fe82a5"/><file name="form.phtml" hash="e5cf9ce8eeaeae71fb3372fb542f7431"/><file name="creditcardiframe.phtml" hash="55c518297c050fc4ce6a82a65d6620b0"/><file name="button.phtml" hash="85af90e7faab002f872f82e3d663139f"/><file name="inforeview.phtml" hash="0d29af5174235ded956fea6e92302a54"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="bluepay"><file name="creditcard.phtml" hash="34d197c5479f948b17c7a58a155a1e9d"/><file name="inforeview.phtml" hash=""/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
- <dependencies><required><php><min>5.3.0</min><max>5.6.9</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>BluePay_CreditCard</name>
4
+ <version>1.5.5.6</version>
5
  <stability>stable</stability>
6
  <license>GNU General Public License</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Credit Card payment module for the BluePay gateway.</summary>
10
  <description>Credit Card payment module for the BluePay gateway.</description>
11
+ <notes>Added missing files</notes>
12
  <authors><author><name>Justin Slingerland</name><user>jslingerland</user><email>jslingerland@bluepay.com</email></author></authors>
13
+ <date>2015-10-02</date>
14
+ <time>19:30:42</time>
15
+ <contents><target name="mageetc"><dir name="modules"><file name="BluePay_CreditCard.xml" hash="8a84b7d3e004f61f9d55e428b55cea8c"/></dir></target><target name="mageweb"><dir name="js"><dir name="bluepay"><file name="bluepay.js" hash="c371e7e864f1b3db25328fa08e3e9c27"/><dir name="easyXDM"><file name="easyXDM.Widgets.debug.js" hash="26b23561d39a64b926fe8dafea2f0a7b"/><file name="easyXDM.Widgets.js" hash="26b23561d39a64b926fe8dafea2f0a7b"/><file name="easyXDM.Widgets.min.js" hash="790f5fa04af75a8013d0ff5fd6dc770d"/><file name="easyXDM.debug.js" hash="2f74fa97b0aacdfb5e8570e381465905"/><file name="easyXDM.js" hash="499464a0c3d89679c11df6ee5d188df5"/><file name="easyXDM.min.js" hash="e3fd912457d7213fe5ccae7bf0fd0c82"/><file name="name.html" hash="990620350432f6c7e28f1e111ce598c8"/><file name=".gitignore" hash="f256c78995e7e95eb33afc3cee8ff195"/></dir></dir></dir></target><target name="magelocal"><dir name="BluePay"><dir name="CreditCard"><dir name="Block"><file name="Form.php" hash="3132dfeb27e31edb4c5a2a862126cdd7"/><file name=".Form.php.swp" hash="0220b69997fe967f426dcf20f6d57185"/></dir><dir name="Helper"><file name="Data.php" hash="dc77bf42a31b7dd5dc31b92549c99abc"/></dir><dir name="Model"><dir name="CCPayment"><file name="Debug.php" hash="bde283680e78d3891affd630c0959bc8"/><file name="Request.php" hash="0317b2c7dc66004767405b78a3cc2631"/><file name="Result.php" hash="0d285e50805f03af609c87d91fce092a"/><dir name="Source"><file name="Cctype.php" hash="9d0f6dd894fb1006ed9bedce966f270b"/><file name="PaymentAction.php" hash="a233de610ff201a77d920fd73ecfb24a"/></dir></dir><file name="CCPayment.php" hash="5eeb7bebef806110f6e36d5dae8280e0"/><file name="CCPayment.php~" hash="ec3b63212a194e3ef7fba51bae3cf1f6"/><file name="Config.php" hash="387ecaf88faa6c7d740b78d9e2dd2db6"/><dir name="Mysql4"><dir name="CCPayment"><dir name="Debug"><file name="Collection.php" hash="9d4c92ad278242715d08b6e202770ce1"/></dir><file name="Debug.php" hash="4f64c922ddb5b80d36538696471b69b5"/></dir></dir></dir><dir name="etc"><file name="config.xml" hash="f514f783fd39e1836b6ef4fc5087ea18"/><file name="system.xml" hash="a7622a714caebe79f607e6aea2fffee1"/></dir><dir name="sql"><dir name="creditcard_setup"><file name="mysql4-install-0.7.0.php" hash="c97f60ff629417efef8beebf619caa9a"/></dir></dir></dir></dir></target><target name="magecore"><dir name="Mage"><dir name="Adminhtml"><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><file name="Testmode.php" hash="3f72e89b4f8239ad839d591310468453"/><dir name="Order"><dir name="Status"><file name="Processingcomplete.php" hash="f9eb96ffc645117a04cc094b62fb24d4"/></dir></dir><file name="Duplicatewindow.php" hash="86b5f8c6d10b2cca813919c8aead0464"/></dir></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="bluepay"><file name="creditcard.phtml" hash="4084bffebe86bead51a4910091fe82a5"/><file name="form.phtml" hash="e5cf9ce8eeaeae71fb3372fb542f7431"/><file name="creditcardiframe.phtml" hash="55c518297c050fc4ce6a82a65d6620b0"/><file name="button.phtml" hash="85af90e7faab002f872f82e3d663139f"/><file name="inforeview.phtml" hash="0d29af5174235ded956fea6e92302a54"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="bluepay"><file name="creditcard.phtml" hash="34d197c5479f948b17c7a58a155a1e9d"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
+ <dependencies><required><php><min>5.3.0</min><max>5.6.99</max></php></required></dependencies>
18
  </package>