Mage_Cgp - Version 1.0.2

Version Notes

1.0.2:
- added field currency of the transaction

1.0.1:
- fixing live/test flag
- re-factored backward compatibility for getConfigData

1.0.0:
- implementation of the Card Gate Plus payment method.

Download this release

Release Info

Developer Paul Saparov
Extension Mage_Cgp
Version 1.0.2
Comparing to
See all releases


Code changes from version 1.0.1 to 1.0.2

app/code/community/Mage/Cgp/Model/Gateway/Abstract.php CHANGED
@@ -291,6 +291,7 @@ abstract class Mage_Cgp_Model_Gateway_Abstract extends Mage_Payment_Model_Method
291
  $hash_prefix = '';
292
  }
293
 
 
294
  $s_arr['amount'] = sprintf('%.0f', $order->getGrandTotal()*100);
295
  $s_arr['description'] = str_replace('%id%',
296
  $order->getIncrementId(),
291
  $hash_prefix = '';
292
  }
293
 
294
+ $s_arr['currency'] = $currency_code;
295
  $s_arr['amount'] = sprintf('%.0f', $order->getGrandTotal()*100);
296
  $s_arr['description'] = str_replace('%id%',
297
  $order->getIncrementId(),
app/etc/modules/Mage_Cgp.xml CHANGED
@@ -25,7 +25,7 @@
25
  <depends>
26
  <Mage_Payment />
27
  </depends>
28
- <version>1.0.0</version>
29
  </Mage_Cgp>
30
  </modules>
31
- </config>
25
  <depends>
26
  <Mage_Payment />
27
  </depends>
28
+ <version>1.0.2</version>
29
  </Mage_Cgp>
30
  </modules>
31
+ </config>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Mage_Cgp</name>
4
- <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
@@ -24,7 +24,10 @@ We accept the following payment methods:&#xD;
24
  - PayPal&#xD;
25
  &#xD;
26
  For more information about Card Gate Plus or a test account, please visit http://www.cardgate.com/</description>
27
- <notes>1.0.1:&#xD;
 
 
 
28
  - fixing live/test flag&#xD;
29
  - re-factored backward compatibility for getConfigData&#xD;
30
  &#xD;
@@ -32,8 +35,8 @@ For more information about Card Gate Plus or a test account, please visit http:/
32
  - implementation of the Card Gate Plus payment method.</notes>
33
  <authors><author><name>Paul Saparov</name><user>cardgate</user><email>info@cardgate.com</email></author></authors>
34
  <date>2011-06-10</date>
35
- <time>08:40:35</time>
36
- <contents><target name="magecommunity"><dir name="Mage"><dir name="Adminhtml"><dir name="Model"><dir name="Cgp"><dir name="Config"><dir name="Source"><file name="Languages.php" hash="821536af861ebcde43ebda148361fbcb"/><file name="Modes.php" hash="0229fa85237675c6617a760624c6c5b7"/></dir></dir></dir></dir></dir><dir name="Cgp"><dir><dir name="Block"><dir name="Form"><file name="Ideal.php" hash="7299cfd4cfbfe789fbd2a67f45114fe3"/></dir><file name="Redirect.php" hash="cf683a717354dabd3374b8e98d8dccec"/></dir><dir name="Helper"><file name="Data.php" hash="7ba89d8143b52dd6d7b12a21d06ada1a"/></dir><dir name="Model"><file name="Base.php" hash="5cd857492c2c99850872faf53ff24f4e"/><dir name="Gateway"><file name="Abstract.php" hash="8750727a744ae0e144f147e442b819a8"/><file name="Americanexpress.php" hash="97ef4d7129f67eda4fab3d370530b957"/><file name="Default.php" hash="825e7a7eedcec0ab5da6a4c91bf4d0eb"/><file name="Directebanking.php" hash="fa28a248c17b06b0b176d0a304ff2476"/><file name="Ideal.php" hash="9988133f985cc31907bf3f12a1a065df"/><file name="Maestro.php" hash="fdd0923d00271802fd3bdc4f68d6b3ba"/><file name="Mastercard.php" hash="26487c47abfea5247dc74eef799e7ec6"/><file name="Mistercash.php" hash="268a27f76303af63d03175d469ffce47"/><file name="Paypal.php" hash="a4a9688502587f0cc5a9f659e12099d8"/><file name="Visa.php" hash="5f3167a8f1fd8277a7720c756eea793a"/><file name="Webmoney.php" hash="67e6715fa62af240cef0367bbf262a3c"/></dir></dir><dir name="controllers"><file name="StandardController.php" hash="03a8928f3b8be013a3e0181a32b94684"/></dir><dir name="etc"><file name="adminhtml.xml" hash="f81650bb81243ac3f8c887b0ccc81993"/><file name="config.xml" hash="1b63f627bc5c2e642e6d6050740a8aa0"/><file name="system.xml" hash="903b60368b3cc0e13779e4b02c3ec67d"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="cgp.xml" hash="4971f43f104b22a7fabb089d2e80e8f0"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="cgp"><dir><dir name="form"><file name="ideal.phtml" hash="6f25c5cc0d29a9f0b30f1d985a571720"/></dir></dir><file name="redirect.phtml" hash="140b175f78fde16c3e681eaa4a601815"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Mage_Cgp.xml" hash="9a42b367cb9faf250c28a449da0a909e"/></dir></target><target name="magelocale"><dir name="nl_NL"><file name="Mage_Cgp.csv" hash="83a886bcf0b520727b1b84fd105359c7"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><file name="cardgate_section.png" hash="b97b15baba0b27042733c8ea4b4fb6bc"/></dir><file name="cgp.css" hash="555e61e8aa5fb98ae030015fff2c24a3"/></dir></dir></dir></target></contents>
37
  <compatible/>
38
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
39
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Mage_Cgp</name>
4
+ <version>1.0.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
24
  - PayPal&#xD;
25
  &#xD;
26
  For more information about Card Gate Plus or a test account, please visit http://www.cardgate.com/</description>
27
+ <notes>1.0.2:&#xD;
28
+ - added field currency of the transaction&#xD;
29
+ &#xD;
30
+ 1.0.1:&#xD;
31
  - fixing live/test flag&#xD;
32
  - re-factored backward compatibility for getConfigData&#xD;
33
  &#xD;
35
  - implementation of the Card Gate Plus payment method.</notes>
36
  <authors><author><name>Paul Saparov</name><user>cardgate</user><email>info@cardgate.com</email></author></authors>
37
  <date>2011-06-10</date>
38
+ <time>13:50:31</time>
39
+ <contents><target name="magecommunity"><dir name="Mage"><dir name="Adminhtml"><dir name="Model"><dir name="Cgp"><dir name="Config"><dir name="Source"><file name="Languages.php" hash="821536af861ebcde43ebda148361fbcb"/><file name="Modes.php" hash="0229fa85237675c6617a760624c6c5b7"/></dir></dir></dir></dir></dir><dir name="Cgp"><dir><dir name="Block"><dir name="Form"><file name="Ideal.php" hash="7299cfd4cfbfe789fbd2a67f45114fe3"/></dir><file name="Redirect.php" hash="cf683a717354dabd3374b8e98d8dccec"/></dir><dir name="Helper"><file name="Data.php" hash="7ba89d8143b52dd6d7b12a21d06ada1a"/></dir><dir name="Model"><file name="Base.php" hash="5cd857492c2c99850872faf53ff24f4e"/><dir name="Gateway"><file name="Abstract.php" hash="200e8eba25504e9e8e5b462ad7ea05d4"/><file name="Americanexpress.php" hash="97ef4d7129f67eda4fab3d370530b957"/><file name="Default.php" hash="825e7a7eedcec0ab5da6a4c91bf4d0eb"/><file name="Directebanking.php" hash="fa28a248c17b06b0b176d0a304ff2476"/><file name="Ideal.php" hash="9988133f985cc31907bf3f12a1a065df"/><file name="Maestro.php" hash="fdd0923d00271802fd3bdc4f68d6b3ba"/><file name="Mastercard.php" hash="26487c47abfea5247dc74eef799e7ec6"/><file name="Mistercash.php" hash="268a27f76303af63d03175d469ffce47"/><file name="Paypal.php" hash="a4a9688502587f0cc5a9f659e12099d8"/><file name="Visa.php" hash="5f3167a8f1fd8277a7720c756eea793a"/><file name="Webmoney.php" hash="67e6715fa62af240cef0367bbf262a3c"/></dir></dir><dir name="controllers"><file name="StandardController.php" hash="03a8928f3b8be013a3e0181a32b94684"/></dir><dir name="etc"><file name="adminhtml.xml" hash="f81650bb81243ac3f8c887b0ccc81993"/><file name="config.xml" hash="1b63f627bc5c2e642e6d6050740a8aa0"/><file name="system.xml" hash="903b60368b3cc0e13779e4b02c3ec67d"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="cgp.xml" hash="4971f43f104b22a7fabb089d2e80e8f0"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="cgp"><dir><dir name="form"><file name="ideal.phtml" hash="6f25c5cc0d29a9f0b30f1d985a571720"/></dir></dir><file name="redirect.phtml" hash="140b175f78fde16c3e681eaa4a601815"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Mage_Cgp.xml" hash="087427ed618cbe3f6f0677391ac39244"/></dir></target><target name="magelocale"><dir name="nl_NL"><file name="Mage_Cgp.csv" hash="83a886bcf0b520727b1b84fd105359c7"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><file name="cardgate_section.png" hash="b97b15baba0b27042733c8ea4b4fb6bc"/></dir><file name="cgp.css" hash="555e61e8aa5fb98ae030015fff2c24a3"/></dir></dir></dir></target></contents>
40
  <compatible/>
41
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
42
  </package>