Version Notes
Second version. Work with www.inet-cash.com
Download this release
Release Info
| Developer | Magento Core Team |
| Extension | Inetcash_Epayment |
| Version | 0.2.1 |
| Comparing to | |
| See all releases | |
Code changes from version 0.1.4 to 0.2.1
- app/code/community/Inetcash/Epayment/Helper/Data.php +2 -2
- app/code/community/Inetcash/Epayment/Model/Epayment.php +2 -3
- app/code/community/Inetcash/Epayment/controllers/EpaymentController.php +6 -7
- app/code/community/Inetcash/Epayment/etc/config.xml +6 -7
- app/code/community/Inetcash/Epayment/etc/system.xml +13 -22
- package.xml +6 -6
app/code/community/Inetcash/Epayment/Helper/Data.php
CHANGED
|
@@ -15,9 +15,9 @@
|
|
| 15 |
*
|
| 16 |
* @category Inet-Cash EPayment
|
| 17 |
* @package inetcash_epayment
|
| 18 |
-
* @copyright Copyright (c)
|
| 19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 20 |
-
* @version
|
| 21 |
*/
|
| 22 |
|
| 23 |
class Inetcash_Epayment_Helper_Data extends Mage_Core_Helper_Abstract
|
| 15 |
*
|
| 16 |
* @category Inet-Cash EPayment
|
| 17 |
* @package inetcash_epayment
|
| 18 |
+
* @copyright Copyright (c) 2012 Inet-Cash GmbH
|
| 19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 20 |
+
* @version config.xml 0.2.0 2012-02-02
|
| 21 |
*/
|
| 22 |
|
| 23 |
class Inetcash_Epayment_Helper_Data extends Mage_Core_Helper_Abstract
|
app/code/community/Inetcash/Epayment/Model/Epayment.php
CHANGED
|
@@ -15,9 +15,9 @@
|
|
| 15 |
*
|
| 16 |
* @category Inet-Cash EPayment
|
| 17 |
* @package inetcash_epayment
|
| 18 |
-
* @copyright Copyright (c)
|
| 19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 20 |
-
* @version
|
| 21 |
*/
|
| 22 |
|
| 23 |
class Inetcash_Epayment_Model_Epayment extends Mage_Payment_Model_Method_Abstract
|
|
@@ -35,4 +35,3 @@ class Inetcash_Epayment_Model_Epayment extends Mage_Payment_Model_Method_Abstrac
|
|
| 35 |
|
| 36 |
|
| 37 |
}
|
| 38 |
-
|
| 15 |
*
|
| 16 |
* @category Inet-Cash EPayment
|
| 17 |
* @package inetcash_epayment
|
| 18 |
+
* @copyright Copyright (c) 2012 Inet-Cash GmbH
|
| 19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 20 |
+
* @version config.xml 0.2.0 2012-02-02
|
| 21 |
*/
|
| 22 |
|
| 23 |
class Inetcash_Epayment_Model_Epayment extends Mage_Payment_Model_Method_Abstract
|
| 35 |
|
| 36 |
|
| 37 |
}
|
|
|
app/code/community/Inetcash/Epayment/controllers/EpaymentController.php
CHANGED
|
@@ -15,9 +15,9 @@
|
|
| 15 |
*
|
| 16 |
* @category Inet-Cash EPayment
|
| 17 |
* @package inetcash_epayment
|
| 18 |
-
* @copyright Copyright (c)
|
| 19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 20 |
-
* @version
|
| 21 |
*/
|
| 22 |
|
| 23 |
class Inetcash_Epayment_EpaymentController extends Mage_Core_Controller_Front_Action
|
|
@@ -37,12 +37,12 @@ class Inetcash_Epayment_EpaymentController extends Mage_Core_Controller_Front_Ac
|
|
| 37 |
$order->save();
|
| 38 |
|
| 39 |
$paymentObj = $order->getPayment()->getMethodInstance();
|
| 40 |
-
$
|
| 41 |
-
$
|
| 42 |
$gwurl = $paymentObj->getConfigData('gwurl');
|
| 43 |
$order_id=Mage::getSingleton('checkout/session')->getLastRealOrderId();
|
| 44 |
|
| 45 |
-
$epayment_url = $gwurl."
|
| 46 |
header("Location:$epayment_url");
|
| 47 |
exit;
|
| 48 |
}
|
|
@@ -96,9 +96,8 @@ class Inetcash_Epayment_EpaymentController extends Mage_Core_Controller_Front_Ac
|
|
| 96 |
$cur = $order->getorder_currency_code();
|
| 97 |
$order->sendNewOrderEmail();
|
| 98 |
$paymentObj = $order->getPayment()->getMethodInstance();
|
| 99 |
-
$sid = $paymentObj->getConfigData('umsatzid');
|
| 100 |
|
| 101 |
-
echo "$lname;$fname;$strasse[0];$plz;$ort;$land;$email;$amount
|
| 102 |
|
| 103 |
}
|
| 104 |
if ($response['art']=='result')
|
| 15 |
*
|
| 16 |
* @category Inet-Cash EPayment
|
| 17 |
* @package inetcash_epayment
|
| 18 |
+
* @copyright Copyright (c) 2012 Inet-Cash GmbH
|
| 19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 20 |
+
* @version config.xml 0.2.0 2012-02-02
|
| 21 |
*/
|
| 22 |
|
| 23 |
class Inetcash_Epayment_EpaymentController extends Mage_Core_Controller_Front_Action
|
| 37 |
$order->save();
|
| 38 |
|
| 39 |
$paymentObj = $order->getPayment()->getMethodInstance();
|
| 40 |
+
$siteid = $paymentObj->getConfigData('siteid');
|
| 41 |
+
$lang = $paymentObj->getConfigData('lang');
|
| 42 |
$gwurl = $paymentObj->getConfigData('gwurl');
|
| 43 |
$order_id=Mage::getSingleton('checkout/session')->getLastRealOrderId();
|
| 44 |
|
| 45 |
+
$epayment_url = $gwurl."/".$siteid."?shopid=".$order_id."&locale=".$lang;
|
| 46 |
header("Location:$epayment_url");
|
| 47 |
exit;
|
| 48 |
}
|
| 96 |
$cur = $order->getorder_currency_code();
|
| 97 |
$order->sendNewOrderEmail();
|
| 98 |
$paymentObj = $order->getPayment()->getMethodInstance();
|
|
|
|
| 99 |
|
| 100 |
+
echo "$lname;$fname;$strasse[0];$plz;$ort;$land;$email;$amount;;$ip;0;0;0;0;$cur";
|
| 101 |
|
| 102 |
}
|
| 103 |
if ($response['art']=='result')
|
app/code/community/Inetcash/Epayment/etc/config.xml
CHANGED
|
@@ -15,9 +15,9 @@
|
|
| 15 |
*
|
| 16 |
* @category Inet-Cash EPayment
|
| 17 |
* @package inetcash_epayment
|
| 18 |
-
* @copyright Copyright (c)
|
| 19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 20 |
-
* @version config.xml 0.
|
| 21 |
*/
|
| 22 |
-->
|
| 23 |
<config>
|
|
@@ -25,7 +25,7 @@
|
|
| 25 |
<modules>
|
| 26 |
<Inetcash_Epayment>
|
| 27 |
<!-- declare module's version information for database updates -->
|
| 28 |
-
<version>0.
|
| 29 |
</Inetcash_Epayment>
|
| 30 |
</modules>
|
| 31 |
<frontend>
|
|
@@ -91,10 +91,9 @@
|
|
| 91 |
<model>epayment/epayment</model>
|
| 92 |
<order_status>1</order_status>
|
| 93 |
<title>Inet-Cash</title>
|
| 94 |
-
<
|
| 95 |
-
<
|
| 96 |
-
<
|
| 97 |
-
<gwurl>https://gateway.inet-cash.de/shop/start.php</gwurl>
|
| 98 |
<allowspecific>0</allowspecific>
|
| 99 |
</epayment>
|
| 100 |
</payment>
|
| 15 |
*
|
| 16 |
* @category Inet-Cash EPayment
|
| 17 |
* @package inetcash_epayment
|
| 18 |
+
* @copyright Copyright (c) 2012 Inet-Cash GmbH
|
| 19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 20 |
+
* @version config.xml 0.2.0 2012-02-02
|
| 21 |
*/
|
| 22 |
-->
|
| 23 |
<config>
|
| 25 |
<modules>
|
| 26 |
<Inetcash_Epayment>
|
| 27 |
<!-- declare module's version information for database updates -->
|
| 28 |
+
<version>0.2.0</version>
|
| 29 |
</Inetcash_Epayment>
|
| 30 |
</modules>
|
| 31 |
<frontend>
|
| 91 |
<model>epayment/epayment</model>
|
| 92 |
<order_status>1</order_status>
|
| 93 |
<title>Inet-Cash</title>
|
| 94 |
+
<siteid>123</siteid>
|
| 95 |
+
<lang>en</lang>
|
| 96 |
+
<gwurl>https://www.inet-cash.com/mc/shop/start/</gwurl>
|
|
|
|
| 97 |
<allowspecific>0</allowspecific>
|
| 98 |
</epayment>
|
| 99 |
</payment>
|
app/code/community/Inetcash/Epayment/etc/system.xml
CHANGED
|
@@ -15,9 +15,9 @@
|
|
| 15 |
*
|
| 16 |
* @category Inet-Cash EPayment
|
| 17 |
* @package inetcash_epayment
|
| 18 |
-
* @copyright Copyright (c)
|
| 19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 20 |
-
* @version
|
| 21 |
*/
|
| 22 |
-->
|
| 23 |
|
|
@@ -46,38 +46,29 @@
|
|
| 46 |
<show_in_store>1</show_in_store>
|
| 47 |
<comment><![CDATA[<b>Activate</b> or <b>Deactivate</b> this module.]]></comment>
|
| 48 |
</active>
|
| 49 |
-
<
|
| 50 |
-
<label>
|
| 51 |
<frontend_type>text</frontend_type>
|
| 52 |
<sort_order>3</sort_order>
|
| 53 |
<show_in_default>1</show_in_default>
|
| 54 |
<show_in_website>1</show_in_website>
|
| 55 |
<show_in_store>1</show_in_store>
|
| 56 |
-
<comment><![CDATA[<b>
|
| 57 |
-
</
|
| 58 |
-
<
|
| 59 |
-
<label>
|
| 60 |
<frontend_type>text</frontend_type>
|
| 61 |
<sort_order>4</sort_order>
|
| 62 |
<show_in_default>1</show_in_default>
|
| 63 |
<show_in_website>1</show_in_website>
|
| 64 |
<show_in_store>1</show_in_store>
|
| 65 |
-
<comment><![CDATA[<b>
|
| 66 |
-
</
|
| 67 |
-
<umsatzid translate="label">
|
| 68 |
-
<label>SalesID/UmsatzId</label>
|
| 69 |
-
<frontend_type>text</frontend_type>
|
| 70 |
-
<sort_order>5</sort_order>
|
| 71 |
-
<show_in_default>1</show_in_default>
|
| 72 |
-
<show_in_website>1</show_in_website>
|
| 73 |
-
<show_in_store>1</show_in_store>
|
| 74 |
-
<comment><![CDATA[<b>UMSATZID</b> = Your Inet-Cash SalesID.]]></comment>
|
| 75 |
-
</umsatzid>
|
| 76 |
<order_status translate="label">
|
| 77 |
<label>New order status</label>
|
| 78 |
<frontend_type>select</frontend_type>
|
| 79 |
<source_model>adminhtml/system_config_source_order_status</source_model>
|
| 80 |
-
<sort_order>
|
| 81 |
<show_in_default>1</show_in_default>
|
| 82 |
<show_in_website>1</show_in_website>
|
| 83 |
<show_in_store>0</show_in_store>
|
|
@@ -85,7 +76,7 @@
|
|
| 85 |
<allowspecific translate="label">
|
| 86 |
<label>Payment Applicable From</label>
|
| 87 |
<frontend_type>select</frontend_type>
|
| 88 |
-
<sort_order>
|
| 89 |
<source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
|
| 90 |
<show_in_default>1</show_in_default>
|
| 91 |
<show_in_website>1</show_in_website>
|
|
@@ -94,7 +85,7 @@
|
|
| 94 |
<specificcountry translate="label">
|
| 95 |
<label>Countries Payment Applicable From</label>
|
| 96 |
<frontend_type>multiselect</frontend_type>
|
| 97 |
-
<sort_order>
|
| 98 |
<source_model>adminhtml/system_config_source_country</source_model>
|
| 99 |
<show_in_default>1</show_in_default>
|
| 100 |
<show_in_website>1</show_in_website>
|
| 15 |
*
|
| 16 |
* @category Inet-Cash EPayment
|
| 17 |
* @package inetcash_epayment
|
| 18 |
+
* @copyright Copyright (c) 2012 Inet-Cash GmbH
|
| 19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 20 |
+
* @version config.xml 0.2.0 2012-02-02
|
| 21 |
*/
|
| 22 |
-->
|
| 23 |
|
| 46 |
<show_in_store>1</show_in_store>
|
| 47 |
<comment><![CDATA[<b>Activate</b> or <b>Deactivate</b> this module.]]></comment>
|
| 48 |
</active>
|
| 49 |
+
<siteid translate="label">
|
| 50 |
+
<label>SiteID</label>
|
| 51 |
<frontend_type>text</frontend_type>
|
| 52 |
<sort_order>3</sort_order>
|
| 53 |
<show_in_default>1</show_in_default>
|
| 54 |
<show_in_website>1</show_in_website>
|
| 55 |
<show_in_store>1</show_in_store>
|
| 56 |
+
<comment><![CDATA[<b>Siteid</b> - Your unique ID from Inet-Cash.]]></comment>
|
| 57 |
+
</siteid>
|
| 58 |
+
<lang translate="label">
|
| 59 |
+
<label>Language</label>
|
| 60 |
<frontend_type>text</frontend_type>
|
| 61 |
<sort_order>4</sort_order>
|
| 62 |
<show_in_default>1</show_in_default>
|
| 63 |
<show_in_website>1</show_in_website>
|
| 64 |
<show_in_store>1</show_in_store>
|
| 65 |
+
<comment><![CDATA[<b>Payment Language</b> - Possible: de,en,es,fr,pl]]></comment>
|
| 66 |
+
</lang>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
<order_status translate="label">
|
| 68 |
<label>New order status</label>
|
| 69 |
<frontend_type>select</frontend_type>
|
| 70 |
<source_model>adminhtml/system_config_source_order_status</source_model>
|
| 71 |
+
<sort_order>5</sort_order>
|
| 72 |
<show_in_default>1</show_in_default>
|
| 73 |
<show_in_website>1</show_in_website>
|
| 74 |
<show_in_store>0</show_in_store>
|
| 76 |
<allowspecific translate="label">
|
| 77 |
<label>Payment Applicable From</label>
|
| 78 |
<frontend_type>select</frontend_type>
|
| 79 |
+
<sort_order>6</sort_order>
|
| 80 |
<source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
|
| 81 |
<show_in_default>1</show_in_default>
|
| 82 |
<show_in_website>1</show_in_website>
|
| 85 |
<specificcountry translate="label">
|
| 86 |
<label>Countries Payment Applicable From</label>
|
| 87 |
<frontend_type>multiselect</frontend_type>
|
| 88 |
+
<sort_order>7</sort_order>
|
| 89 |
<source_model>adminhtml/system_config_source_country</source_model>
|
| 90 |
<show_in_default>1</show_in_default>
|
| 91 |
<show_in_website>1</show_in_website>
|
package.xml
CHANGED
|
@@ -1,18 +1,18 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Inetcash_Epayment</name>
|
| 4 |
-
<version>0.1
|
| 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>Enables Payments via Inet-Cash Shop Sollution</summary>
|
| 10 |
<description>You want to use Inet-Cash as Payment Provider for your Shop? You have to install this package.</description>
|
| 11 |
-
<notes>
|
| 12 |
<authors><author><name>Szpejewski</name><user>auto-converted</user><email>webmaster@inet-cash.com</email></author></authors>
|
| 13 |
-
<date>
|
| 14 |
-
<time>
|
| 15 |
-
<contents><target name="magecommunity"><dir name="Inetcash"><dir name="Epayment"><dir name="controllers"><file name="EpaymentController.php" hash="
|
| 16 |
<compatible/>
|
| 17 |
<dependencies/>
|
| 18 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Inetcash_Epayment</name>
|
| 4 |
+
<version>0.2.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>
|
| 8 |
<extends/>
|
| 9 |
+
<summary>Enables Payments via Inet-Cash.com Shop Sollution</summary>
|
| 10 |
<description>You want to use Inet-Cash as Payment Provider for your Shop? You have to install this package.</description>
|
| 11 |
+
<notes>Second version. Work with www.inet-cash.com</notes>
|
| 12 |
<authors><author><name>Szpejewski</name><user>auto-converted</user><email>webmaster@inet-cash.com</email></author></authors>
|
| 13 |
+
<date>2012-06-20</date>
|
| 14 |
+
<time>13:17:34</time>
|
| 15 |
+
<contents><target name="magecommunity"><dir name="Inetcash"><dir name="Epayment"><dir name="controllers"><file name="EpaymentController.php" hash="dc4f1d5549134d0e02c4a519c64bb16b"/></dir><dir name="etc"><file name="config.xml" hash="2f386a670496abd8003188a756a5c422"/><file name="system.xml" hash="bcdebfd42554c5199974a037d04ea8cb"/></dir><dir name="Helper"><file name="Data.php" hash="9898296248c3055aa409a23bc4e8e116"/></dir><dir name="Model"><file name="Epayment.php" hash="369f4a3b1f5c16322718fb4cc67d3ac0"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Inetcash_Epayment.xml" hash="91c152587ae2775d177f0e5980d1fe6d"/></dir></target></contents>
|
| 16 |
<compatible/>
|
| 17 |
<dependencies/>
|
| 18 |
</package>
|
