Version Notes
Fixed compatibility with E-Check module
Download this release
Release Info
Developer | Justin Slingerland |
Extension | BluePay_CreditCard |
Version | 1.5.5.0 |
Comparing to | |
See all releases |
Code changes from version 1.5.4.9 to 1.5.5.0
app/code/local/BluePay/CreditCard/Model/CCPayment.php
CHANGED
@@ -30,6 +30,7 @@ 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 |
|
34 |
const REQUEST_METHOD_CC = 'CREDIT';
|
35 |
const REQUEST_METHOD_ECHECK = 'ACH';
|
@@ -182,7 +183,6 @@ class BluePay_CreditCard_Model_CCPayment extends Mage_Payment_Model_Method_Cc
|
|
182 |
*/
|
183 |
public function capture(Varien_Object $payment, $amount)
|
184 |
{
|
185 |
-
error_log(print_r($_POST, 1));
|
186 |
$payment->setAmount($amount);
|
187 |
$result =$this->_checkDuplicate($payment);
|
188 |
if ($payment->getCcTransId()) {
|
@@ -406,7 +406,8 @@ class BluePay_CreditCard_Model_CCPayment extends Mage_Payment_Model_Method_Cc
|
|
406 |
$client->setUri($uri ? $uri : self::CGI_URL);
|
407 |
$client->setConfig(array(
|
408 |
'maxredirects'=>0,
|
409 |
-
'timeout'=>30,
|
|
|
410 |
));
|
411 |
$client->setParameterPost($request->getData());
|
412 |
$comma_separated = implode(",", $request->getData());
|
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 |
|
35 |
const REQUEST_METHOD_CC = 'CREDIT';
|
36 |
const REQUEST_METHOD_ECHECK = 'ACH';
|
183 |
*/
|
184 |
public function capture(Varien_Object $payment, $amount)
|
185 |
{
|
|
|
186 |
$payment->setAmount($amount);
|
187 |
$result =$this->_checkDuplicate($payment);
|
188 |
if ($payment->getCcTransId()) {
|
406 |
$client->setUri($uri ? $uri : self::CGI_URL);
|
407 |
$client->setConfig(array(
|
408 |
'maxredirects'=>0,
|
409 |
+
'timeout'=>30,
|
410 |
+
'useragent'=>'BluePay Magento Credit Card Plugin/' . self::CURRENT_VERSION,
|
411 |
));
|
412 |
$client->setParameterPost($request->getData());
|
413 |
$comma_separated = implode(",", $request->getData());
|
app/code/local/BluePay/CreditCard/etc/config.xml
CHANGED
@@ -103,13 +103,13 @@
|
|
103 |
<payment_action>AUTH</payment_action>
|
104 |
<test>1</test>
|
105 |
<title>Credit Card</title>
|
106 |
-
|
107 |
-
|
108 |
<trans_key backend_model="adminhtml/system_config_backend_encrypted"/>
|
109 |
<allowspecific>0</allowspecific>
|
110 |
<currency>USD</currency>
|
111 |
-
|
112 |
-
|
113 |
</ccpayment>
|
114 |
</payment>
|
115 |
</default>
|
103 |
<payment_action>AUTH</payment_action>
|
104 |
<test>1</test>
|
105 |
<title>Credit Card</title>
|
106 |
+
<useccv>1</useccv>
|
107 |
+
<usecvv_backend>0</usecvv_backend>
|
108 |
<trans_key backend_model="adminhtml/system_config_backend_encrypted"/>
|
109 |
<allowspecific>0</allowspecific>
|
110 |
<currency>USD</currency>
|
111 |
+
<duplicate_check>0</duplicate_check>
|
112 |
+
<use_iframe>0</use_iframe>
|
113 |
</ccpayment>
|
114 |
</payment>
|
115 |
</default>
|
app/design/frontend/base/default/layout/bluepay.xml
CHANGED
@@ -38,8 +38,8 @@
|
|
38 |
<!-- Mage_Checkout -->
|
39 |
<remove name="right"/>
|
40 |
<remove name="left"/>
|
41 |
-
|
42 |
-
<block type="checkout/onepage_review_info" name="
|
43 |
<action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>checkout/onepage/review/item.phtml</template></action>
|
44 |
<action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/onepage/review/item.phtml</template></action>
|
45 |
<action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/onepage/review/item.phtml</template></action>
|
@@ -60,5 +60,6 @@
|
|
60 |
</block>
|
61 |
</reference>
|
62 |
</block>
|
|
|
63 |
</checkout_onepage_review>
|
64 |
</layout>
|
38 |
<!-- Mage_Checkout -->
|
39 |
<remove name="right"/>
|
40 |
<remove name="left"/>
|
41 |
+
<reference name="root">
|
42 |
+
<block type="checkout/onepage_review_info" name="checkout.onepage.review.info" output="toHtml" template="bluepay/inforeview.phtml">
|
43 |
<action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>checkout/onepage/review/item.phtml</template></action>
|
44 |
<action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/onepage/review/item.phtml</template></action>
|
45 |
<action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/onepage/review/item.phtml</template></action>
|
60 |
</block>
|
61 |
</reference>
|
62 |
</block>
|
63 |
+
</reference>
|
64 |
</checkout_onepage_review>
|
65 |
</layout>
|
app/design/frontend/base/default/template/bluepay/form.phtml
CHANGED
@@ -35,7 +35,25 @@ foreach ($session->getQuote()->getAllItems() as $item) {
|
|
35 |
$comment .= $item->getBaseCalculationPrice . ' ';
|
36 |
}
|
37 |
$shpfTPS = md5($_secKey . $_amount . $customerName . $city . $state . $zip . $phone . $email);
|
38 |
-
$_url = 'https://secure.bluepay.com/interfaces/shpf?SHPF_FORM_ID=magentocc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
?>
|
40 |
<html>
|
41 |
<body>
|
35 |
$comment .= $item->getBaseCalculationPrice . ' ';
|
36 |
}
|
37 |
$shpfTPS = md5($_secKey . $_amount . $customerName . $city . $state . $zip . $phone . $email);
|
38 |
+
$_url = 'https://secure.bluepay.com/interfaces/shpf?SHPF_FORM_ID=magentocc' .
|
39 |
+
'&SHPF_ACCOUNT_ID=' . urlencode($_accID) .
|
40 |
+
'&SHPF_TPS_DEF=AMOUNT NAME CITY STATE ZIPCODE PHONE EMAIL' .
|
41 |
+
'&SHPF_TPS=' . urlencode($shpfTPS) .
|
42 |
+
'&TRANS_TYPE=' . urlencode($_transType) .
|
43 |
+
'&KEY=' . urlencode($_secKey) .
|
44 |
+
'&MODE=' . urlencode($_transMode) .
|
45 |
+
'&USE_CVV2=' . urlencode($_cvv2) .
|
46 |
+
'&NAME=' . urlencode($customerName) .
|
47 |
+
'&STORE_URL=' . urlencode($_storeUrl) .
|
48 |
+
'&AMOUNT=' . urlencode($_amount) .
|
49 |
+
'&ADDR1=' . urlencode($billingAddress) .
|
50 |
+
'&CITY=' . urlencode($city) .
|
51 |
+
'&STATE=' . urlencode($state) .
|
52 |
+
'&ZIPCODE=' . urlencode($zip) .
|
53 |
+
'&COUNTRY=' . urlencode($country) .
|
54 |
+
'&PHONE=' . urlencode($phone) .
|
55 |
+
'&EMAIL=' . urlencode($email) .
|
56 |
+
'&COMMENT=' . urlencode($comment);
|
57 |
?>
|
58 |
<html>
|
59 |
<body>
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>BluePay_CreditCard</name>
|
4 |
-
<version>1.5.
|
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>
|
12 |
<authors><author><name>Justin Slingerland</name><user>jslingerland</user><email>jslingerland@bluepay.com</email></author></authors>
|
13 |
-
<date>2014-
|
14 |
-
<time>
|
15 |
-
<contents><target name="mageetc"><dir name="modules"><file name="BluePay_CreditCard.xml" hash="8a84b7d3e004f61f9d55e428b55cea8c"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="bluepay.xml" hash="
|
16 |
<compatible/>
|
17 |
-
<dependencies><required><php><min>5.3.0</min><max>5.
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>BluePay_CreditCard</name>
|
4 |
+
<version>1.5.5.0</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 compatibility with E-Check module</notes>
|
12 |
<authors><author><name>Justin Slingerland</name><user>jslingerland</user><email>jslingerland@bluepay.com</email></author></authors>
|
13 |
+
<date>2014-09-10</date>
|
14 |
+
<time>20:26:56</time>
|
15 |
+
<contents><target name="mageetc"><dir name="modules"><file name="BluePay_CreditCard.xml" hash="8a84b7d3e004f61f9d55e428b55cea8c"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="bluepay.xml" hash="1ff46b6a4e3a5445d068ef60d0967b2c"/></dir><dir name="template"><dir name="bluepay"><file name="form.phtml" hash="c361e31dc27fad405962f3b96d0979c4"/><file name="creditcard.phtml" hash="4084bffebe86bead51a4910091fe82a5"/><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="0d29af5174235ded956fea6e92302a54"/></dir></dir></dir></dir></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="2ae76bc369eff368e94e8a09566b6d25"/></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="cb24f25eb95ffddf1465d01e9d0613a9"/><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"><dir name="Order"><dir name="Status"><file name="Processingcomplete.php" hash="f9eb96ffc645117a04cc094b62fb24d4"/></dir></dir><file name="Testmode.php" hash="3f72e89b4f8239ad839d591310468453"/><file name="Duplicatewindow.php" hash="86b5f8c6d10b2cca813919c8aead0464"/></dir></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>
|