Version Notes
Added L3 support
Download this release
Release Info
Developer | Justin Slingerland |
Extension | BluePay_CreditCard |
Version | 1.5.6.8 |
Comparing to | |
See all releases |
Code changes from version 1.5.6.7 to 1.5.6.8
app/code/local/BluePay/CreditCard/.DS_Store
CHANGED
Binary file
|
app/code/local/BluePay/CreditCard/Model/CCPayment.php
CHANGED
@@ -30,7 +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 |
-
const CURRENT_VERSION = '1.5.
|
34 |
|
35 |
const REQUEST_METHOD_CC = 'CREDIT';
|
36 |
const REQUEST_METHOD_ECHECK = 'ACH';
|
@@ -329,14 +329,26 @@ class BluePay_CreditCard_Model_CCPayment extends Mage_Payment_Model_Method_Cc
|
|
329 |
$session = Mage::getSingleton('checkout/session');
|
330 |
|
331 |
$comment = "";
|
332 |
-
|
333 |
foreach ($session->getQuote()->getAllItems() as $item) {
|
334 |
|
335 |
$comment .= $item->getQty() . ' ';
|
336 |
$comment .= '[' . $item->getSku() . ']' . ' ';
|
337 |
$comment .= $item->getName() . ' ';
|
338 |
$comment .= $item->getDescription() . ' ';
|
339 |
-
$comment .= $item->getBaseCalculationPrice . ' ';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
340 |
}
|
341 |
|
342 |
|
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.6.8';
|
34 |
|
35 |
const REQUEST_METHOD_CC = 'CREDIT';
|
36 |
const REQUEST_METHOD_ECHECK = 'ACH';
|
329 |
$session = Mage::getSingleton('checkout/session');
|
330 |
|
331 |
$comment = "";
|
332 |
+
$i = 1;
|
333 |
foreach ($session->getQuote()->getAllItems() as $item) {
|
334 |
|
335 |
$comment .= $item->getQty() . ' ';
|
336 |
$comment .= '[' . $item->getSku() . ']' . ' ';
|
337 |
$comment .= $item->getName() . ' ';
|
338 |
$comment .= $item->getDescription() . ' ';
|
339 |
+
$comment .= $item->getBaseCalculationPrice() . ' ';
|
340 |
+
|
341 |
+
$request["lv3_item".$i."_product_code"] = $item->getSku();
|
342 |
+
$request["lv3_item".$i."_unit_cost"] = $item->getBaseCalculationPrice();
|
343 |
+
$request["lv3_item".$i."_quantity"] = $item->getQty();
|
344 |
+
$request["lv3_item".$i."_item_descriptor"] = $item->getName();
|
345 |
+
$request["lv3_item".$i."_measure_units"] = 'EA';
|
346 |
+
$request["lv3_item".$i."_commodity_code"] = '-';
|
347 |
+
$request["lv3_item".$i."_tax_amount"] = round($item->getBaseCalculationPrice() * ($item->getTaxPercent() / 100), 2);
|
348 |
+
$request["lv3_item".$i."_tax_rate"] = $item->getTaxPercent() . '%';
|
349 |
+
$request["lv3_item".$i."_item_discount"] = '';
|
350 |
+
$request["lv3_item".$i."_line_item_total"] = $item->getBaseCalculationPrice() * $item->getQty();
|
351 |
+
$i++;
|
352 |
}
|
353 |
|
354 |
|
app/design/frontend/base/default/template/bluepay/form.phtml
CHANGED
@@ -27,15 +27,30 @@ $phone = $address->getTelephone();
|
|
27 |
$email = $address->getEmail();
|
28 |
$session = Mage::getSingleton('checkout/session');
|
29 |
$comment = "";
|
|
|
|
|
30 |
foreach ($session->getQuote()->getAllItems() as $item) {
|
31 |
$comment .= $item->getQty() . ' ';
|
32 |
$comment .= '[' . $item->getSku() . ']' . ' ';
|
33 |
$comment .= $item->getName() . ' ';
|
34 |
$comment .= $item->getDescription() . ' ';
|
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=magentoccw' .
|
39 |
'&SHPF_ACCOUNT_ID=' . urlencode($_accID) .
|
40 |
'&SHPF_TPS_DEF=AMOUNT NAME CITY STATE ZIPCODE PHONE EMAIL' .
|
41 |
'&SHPF_TPS=' . urlencode($shpfTPS) .
|
@@ -53,8 +68,12 @@ $_url = 'https://secure.bluepay.com/interfaces/shpf?SHPF_FORM_ID=magentoccw' .
|
|
53 |
'&COUNTRY=' . urlencode($country) .
|
54 |
'&PHONE=' . urlencode($phone) .
|
55 |
'&EMAIL=' . urlencode($email) .
|
56 |
-
'&PLUGIN_VERSION=1.5.
|
57 |
'&COMMENT=' . urlencode($comment);
|
|
|
|
|
|
|
|
|
58 |
?>
|
59 |
<html>
|
60 |
<body>
|
27 |
$email = $address->getEmail();
|
28 |
$session = Mage::getSingleton('checkout/session');
|
29 |
$comment = "";
|
30 |
+
$i = 1;
|
31 |
+
$level3 = [];
|
32 |
foreach ($session->getQuote()->getAllItems() as $item) {
|
33 |
$comment .= $item->getQty() . ' ';
|
34 |
$comment .= '[' . $item->getSku() . ']' . ' ';
|
35 |
$comment .= $item->getName() . ' ';
|
36 |
$comment .= $item->getDescription() . ' ';
|
37 |
+
$comment .= $item->getBaseCalculationPrice() . ' ';
|
38 |
+
|
39 |
+
$level3["LV3_ITEM".$i."_PRODUCT_CODE"] = $item->getSku();
|
40 |
+
$level3["LV3_ITEM".$i."_UNIT_COST"] = $item->getBaseCalculationPrice();
|
41 |
+
$level3["LV3_ITEM".$i."_QUANTITY"] = $item->getQty();
|
42 |
+
$level3["LV3_ITEM".$i."_ITEM_DESCRIPTOR"] = $item->getName();
|
43 |
+
$level3["LV3_ITEM".$i."_MEASURE_UNITS"] = 'EA';
|
44 |
+
$level3["LV3_ITEM".$i."_COMMODITY_CODE"] = '-';
|
45 |
+
$level3["LV3_ITEM".$i."_TAX_AMOUNT"] = round($item->getBaseCalculationPrice() * ($item->getTaxPercent() / 100), 2);
|
46 |
+
$level3["LV3_ITEM".$i."_TAX_RATE"] = $item->getTaxPercent() . '%';
|
47 |
+
$level3["LV3_ITEM".$i."_ITEM_DISCOUNT"] = '';
|
48 |
+
$level3["LV3_ITEM".$i."_LINE_ITEM_TOTAL"] = $item->getBaseCalculationPrice() * $item->getQty();
|
49 |
+
$i++;
|
50 |
+
|
51 |
}
|
52 |
$shpfTPS = md5($_secKey . $_amount . $customerName . $city . $state . $zip . $phone . $email);
|
53 |
+
$_url = 'https://secure.bluepay.com/interfaces/shpf?SHPF_FORM_ID=magentoccw' .
|
54 |
'&SHPF_ACCOUNT_ID=' . urlencode($_accID) .
|
55 |
'&SHPF_TPS_DEF=AMOUNT NAME CITY STATE ZIPCODE PHONE EMAIL' .
|
56 |
'&SHPF_TPS=' . urlencode($shpfTPS) .
|
68 |
'&COUNTRY=' . urlencode($country) .
|
69 |
'&PHONE=' . urlencode($phone) .
|
70 |
'&EMAIL=' . urlencode($email) .
|
71 |
+
'&PLUGIN_VERSION=1.5.6.8' .
|
72 |
'&COMMENT=' . urlencode($comment);
|
73 |
+
foreach ($level3 as $key => $value) {
|
74 |
+
$_url .= '&' . $key . '=' . urlencode($value);
|
75 |
+
}
|
76 |
+
error_log($_url);
|
77 |
?>
|
78 |
<html>
|
79 |
<body>
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>BluePay_CreditCard</name>
|
4 |
-
<version>1.5.6.
|
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>
|
14 |
-
<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"/></dir><dir name="Helper"><file name="Data.php" hash="dc77bf42a31b7dd5dc31b92549c99abc"/></dir><dir name="Model"><dir name="CCPayment"><file name="Debug.php" hash="85cde3e5beaa7b87a1552b17a3224e61"/><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="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.3.0</min><max>7.1.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>BluePay_CreditCard</name>
|
4 |
+
<version>1.5.6.8</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 L3 support</notes>
|
12 |
<authors><author><name>Justin Slingerland</name><user>jslingerland</user><email>jslingerland@bluepay.com</email></author></authors>
|
13 |
+
<date>2017-05-31</date>
|
14 |
+
<time>20:35:19</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"/></dir><dir name="Helper"><file name="Data.php" hash="dc77bf42a31b7dd5dc31b92549c99abc"/></dir><dir name="Model"><dir name="CCPayment"><file name="Debug.php" hash="85cde3e5beaa7b87a1552b17a3224e61"/><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="1baf586e759f9a09afeb589311bc83b3"/><file name="CCPayment.php~" hash="cd4449aec447bb72da629b84920b096d"/><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><file name=".DS_Store" hash="b81c7b0ab84c31171e29761971751e13"/></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><file name=".DS_Store" hash="d35992296a2b38b400e1b5e65d5c97eb"/></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="1d79f67111233a51d6ad29c87dda08f0"/><file name="creditcardiframe.phtml" hash="55c518297c050fc4ce6a82a65d6620b0"/><file name="button.phtml" hash="85af90e7faab002f872f82e3d663139f"/><file name="inforeview.phtml" hash="0d29af5174235ded956fea6e92302a54"/></dir></dir><dir name="layout"><file name="bluepay.xml" hash="b68e41740c6db189ac69df166d412ab6"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="bluepay"><file name="creditcard.phtml" hash="d4a89cf407884beaa1db416cdd450fad"/></dir></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.3.0</min><max>7.1.0</max></php></required></dependencies>
|
18 |
</package>
|