Version Notes
- fix for processing additional payment data.
Download this release
Release Info
Developer | Magento Core Team |
Extension | Cardgate_Cgp |
Version | 1.0.33 |
Comparing to | |
See all releases |
Code changes from version 1.0.32 to 1.0.33
app/code/local/Cardgate/Cgp/Block/Form/Ideal.php
CHANGED
@@ -82,7 +82,7 @@ class Cardgate_Cgp_Block_Form_Ideal extends Mage_Payment_Block_Form
|
|
82 |
|
83 |
private function getBankOptions(){
|
84 |
$url = 'https://gateway.cardgateplus.com/cache/idealDirectoryRabobank.dat';
|
85 |
-
if( !
|
86 |
$result = false;
|
87 |
} else {
|
88 |
$result = file_get_contents($url);
|
82 |
|
83 |
private function getBankOptions(){
|
84 |
$url = 'https://gateway.cardgateplus.com/cache/idealDirectoryRabobank.dat';
|
85 |
+
if( !function_exists('file_get_contents') ) {
|
86 |
$result = false;
|
87 |
} else {
|
88 |
$result = file_get_contents($url);
|
app/code/local/Cardgate/Cgp/Model/Gateway/Abstract.php
CHANGED
@@ -146,11 +146,7 @@ abstract class Cardgate_Cgp_Model_Gateway_Abstract extends Mage_Payment_Model_Me
|
|
146 |
* @return string
|
147 |
*/
|
148 |
public function getOrderPlaceRedirectUrl() {
|
149 |
-
$
|
150 |
-
$session->cgp_onestepcheckout = false;
|
151 |
-
if ( isset( $_POST['payment']['cgp'] ) ) {
|
152 |
-
$session->_additional_information = $_POST['payment']['cgp'];
|
153 |
-
}
|
154 |
return $this->getModelUrl( 'cgp/standard/redirect' );
|
155 |
}
|
156 |
|
@@ -216,10 +212,10 @@ abstract class Cardgate_Cgp_Model_Gateway_Abstract extends Mage_Payment_Model_Me
|
|
216 |
* @return array
|
217 |
*/
|
218 |
public function getCheckoutFormFields() {
|
219 |
-
$base = Mage::getSingleton( 'cgp/base' );
|
220 |
|
221 |
-
$
|
222 |
-
$extra_data = $
|
|
|
223 |
$order = $this->getOrder();
|
224 |
|
225 |
if ( !$this->getConfigData( 'orderemail_at_payment' ) ) {
|
@@ -550,7 +546,7 @@ abstract class Cardgate_Cgp_Model_Gateway_Abstract extends Mage_Payment_Model_Me
|
|
550 |
$s_arr['amount'] .
|
551 |
$s_arr['ref'] .
|
552 |
$this->getConfigData( 'hash_key' ) );
|
553 |
-
|
554 |
// Logging
|
555 |
$base->log( 'Initiating a new transaction' );
|
556 |
$base->log( 'Sending customer to Card Gate Plus with values:' );
|
146 |
* @return string
|
147 |
*/
|
148 |
public function getOrderPlaceRedirectUrl() {
|
149 |
+
$_SESSION['cgp_formdata'] = $_POST;
|
|
|
|
|
|
|
|
|
150 |
return $this->getModelUrl( 'cgp/standard/redirect' );
|
151 |
}
|
152 |
|
212 |
* @return array
|
213 |
*/
|
214 |
public function getCheckoutFormFields() {
|
|
|
215 |
|
216 |
+
$base = Mage::getSingleton( 'cgp/base' );
|
217 |
+
$extra_data = $_SESSION['cgp_formdata']['payment']['cgp'];
|
218 |
+
|
219 |
$order = $this->getOrder();
|
220 |
|
221 |
if ( !$this->getConfigData( 'orderemail_at_payment' ) ) {
|
546 |
$s_arr['amount'] .
|
547 |
$s_arr['ref'] .
|
548 |
$this->getConfigData( 'hash_key' ) );
|
549 |
+
|
550 |
// Logging
|
551 |
$base->log( 'Initiating a new transaction' );
|
552 |
$base->log( 'Sending customer to Card Gate Plus with values:' );
|
app/code/local/Cardgate/Cgp/etc/config.xml
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
<config>
|
21 |
<modules>
|
22 |
<Cardgate_Cgp>
|
23 |
-
<version>1.0.
|
24 |
</Cardgate_Cgp>
|
25 |
</modules>
|
26 |
|
20 |
<config>
|
21 |
<modules>
|
22 |
<Cardgate_Cgp>
|
23 |
+
<version>1.0.33</version>
|
24 |
</Cardgate_Cgp>
|
25 |
</modules>
|
26 |
|
package.xml
CHANGED
@@ -1,19 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Cardgate_Cgp</name>
|
4 |
-
<version>1.0.
|
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>Card Gate Plus Payment Module</summary>
|
10 |
<description>Card Gate Plus is a Payment Service Provider from the Netherlands. We offer various payment methods against competitive rates.</description>
|
11 |
-
<notes>-
|
12 |
-
- Updated transaction test mode.</notes>
|
13 |
<authors><author><name>Richard Schoots</name><user>auto-converted</user><email>support@cardgate.com</email></author></authors>
|
14 |
-
<date>2015-05-
|
15 |
-
<time>
|
16 |
-
<contents><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><dir name="cardgate"><file name="cardgate_cgp.png" hash="b97b15baba0b27042733c8ea4b4fb6bc"/></dir></dir><file name="cardgate_cgp.css" hash="bebfc13fca1b36867c17864ae70fdabd"/></dir></dir></dir></target><target name="magelocale"><dir name="nl_NL"><file name="Cardgate_Cgp.csv" hash="9c483a4b377d81da59f726aa3908a7a6"/></dir></target><target name="mageetc"><dir name="modules"><file name="Cardgate_Cgp.xml" hash="c7a72af045f4b737b50cc6c360d4300d"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="cardgate"><dir name="cgp"><dir name="form"><file name="banktransfer.phtml" hash="ff7a2a827a7b7a5ed9bcb5d484c30c68"/><file name="ideal.phtml" hash="42fdfee86ba3a098f5f73e9240332581"/><file name="klarna.phtml" hash="590c98ab018c474e8e4dc65e9199ba85"/><file name="klarnaaccount.phtml" hash="419f88941703c8562369844bb6a1d692"/></dir><file name="redirect.phtml" hash="ecb2b0a854cd6358adeba535f8889046"/></dir></dir></dir></dir></dir></dir></target><target name="magelocal"><dir name="Cardgate"><dir name="Cgp"><dir name="Block"><dir name="Form"><file name="Banktransfer.php" hash="cbd094ef3552618c9657f411082beb1e"/><file name="Ideal.php" hash="
|
17 |
<compatible/>
|
18 |
<dependencies/>
|
19 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Cardgate_Cgp</name>
|
4 |
+
<version>1.0.33</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>Card Gate Plus Payment Module</summary>
|
10 |
<description>Card Gate Plus is a Payment Service Provider from the Netherlands. We offer various payment methods against competitive rates.</description>
|
11 |
+
<notes>- fix for processing additional payment data.</notes>
|
|
|
12 |
<authors><author><name>Richard Schoots</name><user>auto-converted</user><email>support@cardgate.com</email></author></authors>
|
13 |
+
<date>2015-05-19</date>
|
14 |
+
<time>11:37:40</time>
|
15 |
+
<contents><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><dir name="cardgate"><file name="cardgate_cgp.png" hash="b97b15baba0b27042733c8ea4b4fb6bc"/></dir></dir><file name="cardgate_cgp.css" hash="bebfc13fca1b36867c17864ae70fdabd"/></dir></dir></dir></target><target name="magelocale"><dir name="nl_NL"><file name="Cardgate_Cgp.csv" hash="9c483a4b377d81da59f726aa3908a7a6"/></dir></target><target name="mageetc"><dir name="modules"><file name="Cardgate_Cgp.xml" hash="c7a72af045f4b737b50cc6c360d4300d"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="cardgate"><dir name="cgp"><dir name="form"><file name="banktransfer.phtml" hash="ff7a2a827a7b7a5ed9bcb5d484c30c68"/><file name="ideal.phtml" hash="42fdfee86ba3a098f5f73e9240332581"/><file name="klarna.phtml" hash="590c98ab018c474e8e4dc65e9199ba85"/><file name="klarnaaccount.phtml" hash="419f88941703c8562369844bb6a1d692"/></dir><file name="redirect.phtml" hash="ecb2b0a854cd6358adeba535f8889046"/></dir></dir></dir></dir></dir></dir></target><target name="magelocal"><dir name="Cardgate"><dir name="Cgp"><dir name="Block"><dir name="Form"><file name="Banktransfer.php" hash="cbd094ef3552618c9657f411082beb1e"/><file name="Ideal.php" hash="c0e11d3161bd93ca869a31d9b54e1b4b"/><file name="Klarna.php" hash="9bdbe1886bcdb283b86b6d208c3aa712"/><file name="Klarnaaccount.php" hash="0b4b84d9c472e815a30d5977ac53c932"/></dir><file name="Redirect.php" hash="668b52ec0c5fba7f42223d4e40a99987"/></dir><dir name="Helper"><file name="Data.php" hash="c94c725de2e14dc8019323c1ecf08962"/></dir><dir name="Model"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Source"><file name="Languages.php" hash="4fe09e45e3d9f3866d4b7c8437832972"/><file name="Modes.php" hash="888158f9118ba5087357d5c1ad8514d4"/></dir></dir></dir></dir><dir name="Gateway"><file name="Abstract.php" hash="39f8a4cc7472193defe0a276b60d3061"/><file name="Americanexpress.php" hash="63988a4b6ec2b92c41115bac80b489c0"/><file name="Banktransfer.php" hash="af6ff9d03f3a5b41926762bd9d41f5c7"/><file name="Default.php" hash="956d1ff0c2cfe0698efc23277e602cec"/><file name="Directdebit.php" hash="6ecd143d3d0b91c818fd8a9bf3858d0f"/><file name="Giropay.php" hash="aff19feafd61a08e3e298a865d52c3d5"/><file name="Ideal.php" hash="8ba0ccae24cde16a65ec17b462a64b6d"/><file name="Klarna.php" hash="330efb073aba572606b1f25b597bb106"/><file name="Klarnaaccount.php" hash="2012566e77136f823e965c8811321ea3"/><file name="Maestro.php" hash="b2887cc1de0590ab78e4373324924486"/><file name="Mastercard.php" hash="f1bfabcc244175c3e691e1707a541415"/><file name="Mistercash.php" hash="cc750b3e2d0cab9e345e77124d652115"/><file name="Paypal.php" hash="5831bb3e2e3f6d3e9506e9c6bbcf76c9"/><file name="Przelewy24.php" hash="62dc63f9d029d3f1599ffa6f4ec91e27"/><file name="Sofortbanking.php" hash="c680c21fa1a8a6427519664e1b1c1a94"/><file name="Visa.php" hash="d977468b9dac7c70d637b6167918c569"/><file name="Vpay.php" hash="2eb70f7616beada4fe23f2554f575e2e"/><file name="Webmoney.php" hash="b0f44c9232cf456778123c05127d3f12"/></dir><file name="Base.php" hash="b8a2f888d0d8e86a639b8379720c9e7a"/><file name="Observer.php" hash="81f7a3c5149f52dcb2d4c7434d250003"/></dir><dir name="controllers"><file name="StandardController.php" hash="1524983a5b9d05ef2d7e7d92c25ff409"/></dir><dir name="etc"><file name="adminhtml.xml" hash="1caa98cae31103bb77143f821f68f451"/><file name="config.xml" hash="8c9c129c9a1a0ff2a6e4f3aa4571b4d3"/><file name="system.xml" hash="e1a6d488d1ec693157d8ece2bc7e809c"/></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|