Version Notes
Added missing files
Download this release
Release Info
Developer | Justin Slingerland |
Extension | BluePay_CreditCard |
Version | 1.5.5.7 |
Comparing to | |
See all releases |
Code changes from version 1.5.5.6 to 1.5.5.7
app/code/local/BluePay/CreditCard/Model/CCPayment.php
CHANGED
@@ -28,8 +28,7 @@
|
|
28 |
|
29 |
class BluePay_CreditCard_Model_CCPayment extends Mage_Payment_Model_Method_Cc
|
30 |
{
|
31 |
-
|
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 |
|
@@ -394,17 +393,14 @@ class BluePay_CreditCard_Model_CCPayment extends Mage_Payment_Model_Method_Cc
|
|
394 |
protected function _postRequest(Varien_Object $request)
|
395 |
{
|
396 |
$debugData = array('request' => $request->getData());
|
397 |
-
//if (!self::$_dupe) {
|
398 |
$result = Mage::getModel('creditcard/CCPayment_result');
|
399 |
-
//}
|
400 |
if (isset($_POST["?Result"])) {
|
401 |
$_POST["Result"] = $_POST["?Result"];
|
402 |
unset($_POST["?Result"]);
|
403 |
}
|
404 |
if (!isset($_POST["Result"])) {
|
405 |
$client = new Varien_Http_Client();
|
406 |
-
|
407 |
-
$uri = 'http://www.assurebuy.com/echo.pl';
|
408 |
$client->setUri($uri ? $uri : self::CGI_URL);
|
409 |
$client->setConfig(array(
|
410 |
'maxredirects'=>0,
|
@@ -413,7 +409,6 @@ class BluePay_CreditCard_Model_CCPayment extends Mage_Payment_Model_Method_Cc
|
|
413 |
));
|
414 |
$client->setParameterPost($request->getData());
|
415 |
$comma_separated = implode(",", $request->getData());
|
416 |
-
//Mage::throwException($this->_wrapGatewayError($comma_separated));
|
417 |
$client->setMethod(Zend_Http_Client::POST);
|
418 |
try {
|
419 |
$response = $client->request();
|
@@ -424,9 +419,6 @@ class BluePay_CreditCard_Model_CCPayment extends Mage_Payment_Model_Method_Cc
|
|
424 |
Mage::throwException($this->_wrapGatewayError($e->getMessage()));
|
425 |
}
|
426 |
$r = $response->getHeader('location');
|
427 |
-
//if (self::$_dupe) {
|
428 |
-
// return $result;
|
429 |
-
//}
|
430 |
if ($r) {
|
431 |
$result->setResult($this->parseHeader($r, 'value', self::Result))
|
432 |
->setInvoiceId($this->parseHeader($r, 'value', self::INVOICE_ID))
|
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 |
|
393 |
protected function _postRequest(Varien_Object $request)
|
394 |
{
|
395 |
$debugData = array('request' => $request->getData());
|
|
|
396 |
$result = Mage::getModel('creditcard/CCPayment_result');
|
|
|
397 |
if (isset($_POST["?Result"])) {
|
398 |
$_POST["Result"] = $_POST["?Result"];
|
399 |
unset($_POST["?Result"]);
|
400 |
}
|
401 |
if (!isset($_POST["Result"])) {
|
402 |
$client = new Varien_Http_Client();
|
403 |
+
$uri = $this->getConfigData('cgi_url');
|
|
|
404 |
$client->setUri($uri ? $uri : self::CGI_URL);
|
405 |
$client->setConfig(array(
|
406 |
'maxredirects'=>0,
|
409 |
));
|
410 |
$client->setParameterPost($request->getData());
|
411 |
$comma_separated = implode(",", $request->getData());
|
|
|
412 |
$client->setMethod(Zend_Http_Client::POST);
|
413 |
try {
|
414 |
$response = $client->request();
|
419 |
Mage::throwException($this->_wrapGatewayError($e->getMessage()));
|
420 |
}
|
421 |
$r = $response->getHeader('location');
|
|
|
|
|
|
|
422 |
if ($r) {
|
423 |
$result->setResult($this->parseHeader($r, 'value', self::Result))
|
424 |
->setInvoiceId($this->parseHeader($r, 'value', self::INVOICE_ID))
|
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 |
|
@@ -342,7 +343,7 @@ class BluePay_CreditCard_Model_CCPayment extends Mage_Payment_Model_Method_Cc
|
|
342 |
if (!empty($billing)) {
|
343 |
$request->setName1($billing->getFirstname())
|
344 |
->setName2($billing->getLastname())
|
345 |
-
->
|
346 |
->setAddr1($billing->getStreet(1))
|
347 |
->setCity($billing->getCity())
|
348 |
->setState($billing->getRegion())
|
@@ -351,7 +352,7 @@ class BluePay_CreditCard_Model_CCPayment extends Mage_Payment_Model_Method_Cc
|
|
351 |
->setPhone($billing->getTelephone())
|
352 |
->setFax($billing->getFax())
|
353 |
->setCustomId($billing->getCustomerId())
|
354 |
-
|
355 |
->setEmail($order->getCustomerEmail());
|
356 |
}
|
357 |
|
@@ -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 |
-
|
|
|
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 |
|
343 |
if (!empty($billing)) {
|
344 |
$request->setName1($billing->getFirstname())
|
345 |
->setName2($billing->getLastname())
|
346 |
+
->setCompanyName($billing->getCompany())
|
347 |
->setAddr1($billing->getStreet(1))
|
348 |
->setCity($billing->getCity())
|
349 |
->setState($billing->getRegion())
|
352 |
->setPhone($billing->getTelephone())
|
353 |
->setFax($billing->getFax())
|
354 |
->setCustomId($billing->getCustomerId())
|
355 |
+
->setComment($comment)
|
356 |
->setEmail($order->getCustomerEmail());
|
357 |
}
|
358 |
|
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,
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>BluePay_CreditCard</name>
|
4 |
-
<version>1.5.5.
|
5 |
<stability>stable</stability>
|
6 |
<license>GNU General Public License</license>
|
7 |
<channel>community</channel>
|
@@ -11,8 +11,8 @@
|
|
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>
|
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="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.3.0</min><max>5.6.99</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>BluePay_CreditCard</name>
|
4 |
+
<version>1.5.5.7</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>GNU General Public License</license>
|
7 |
<channel>community</channel>
|
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>20:06:56</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="a3d966835e6b14c7642507616ffba033"/><file name="CCPayment.php~" hash="5eeb7bebef806110f6e36d5dae8280e0"/><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>
|