Version Notes
Onecard Payment Gateway 1.0.2 release
Download this release
Release Info
Developer | Moe |
Extension | Onecard_Paymentmethod |
Version | 1.0.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.0.2
app/code/local/Onecard/Onecardpay/etc/system.xml
CHANGED
@@ -70,6 +70,7 @@
|
|
70 |
<show_in_website>1</show_in_website>
|
71 |
<show_in_store>0</show_in_store>
|
72 |
</display_text>-->
|
|
|
73 |
<payment_gateway_url translate="label">
|
74 |
<label>Payment gateway url (staging or production)</label>
|
75 |
<frontend_type>text</frontend_type>
|
@@ -78,6 +79,16 @@
|
|
78 |
<show_in_website>1</show_in_website>
|
79 |
<show_in_store>0</show_in_store>
|
80 |
</payment_gateway_url>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
<onecard_keyword translate="label">
|
82 |
<label>Keyword</label>
|
83 |
<frontend_type>text</frontend_type>
|
70 |
<show_in_website>1</show_in_website>
|
71 |
<show_in_store>0</show_in_store>
|
72 |
</display_text>-->
|
73 |
+
<!--
|
74 |
<payment_gateway_url translate="label">
|
75 |
<label>Payment gateway url (staging or production)</label>
|
76 |
<frontend_type>text</frontend_type>
|
79 |
<show_in_website>1</show_in_website>
|
80 |
<show_in_store>0</show_in_store>
|
81 |
</payment_gateway_url>
|
82 |
+
-->
|
83 |
+
<test translate="label">
|
84 |
+
<label>Staging (test mode)</label>
|
85 |
+
<frontend_type>select</frontend_type>
|
86 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
87 |
+
<sort_order>1</sort_order>
|
88 |
+
<show_in_default>1</show_in_default>
|
89 |
+
<show_in_website>1</show_in_website>
|
90 |
+
<show_in_store>0</show_in_store>
|
91 |
+
</test>
|
92 |
<onecard_keyword translate="label">
|
93 |
<label>Keyword</label>
|
94 |
<frontend_type>text</frontend_type>
|
app/design/frontend/{default → base}/default/template/onecard/redirect.phtml
RENAMED
@@ -28,12 +28,31 @@ $onecard_return_url = $site_domain_name.'onecardpay/payment/response';
|
|
28 |
/********************************/
|
29 |
$onecard_keyword = Mage::getStoreConfig('payment/onecardpay/onecard_keyword',Mage::app()->getStore());
|
30 |
$onecard_transkey = Mage::getStoreConfig('payment/onecardpay/onecard_transkey',Mage::app()->getStore());
|
31 |
-
|
32 |
$language = Mage::getStoreConfig('payment/onecardpay/language',Mage::app()->getStore());
|
33 |
$currency = Mage::getStoreConfig('payment/onecardpay/currency',Mage::app()->getStore());
|
34 |
$merchant_id = Mage::getStoreConfig('payment/onecardpay/merchant_id',Mage::app()->getStore());
|
35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
//exit();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
?>
|
38 |
|
39 |
<form name="onecardpaymentform" action="<?php echo $payment_gateway_url;?>" method="post" />
|
28 |
/********************************/
|
29 |
$onecard_keyword = Mage::getStoreConfig('payment/onecardpay/onecard_keyword',Mage::app()->getStore());
|
30 |
$onecard_transkey = Mage::getStoreConfig('payment/onecardpay/onecard_transkey',Mage::app()->getStore());
|
31 |
+
//$payment_gateway_url = Mage::getStoreConfig('payment/onecardpay/payment_gateway_url',Mage::app()->getStore());
|
32 |
$language = Mage::getStoreConfig('payment/onecardpay/language',Mage::app()->getStore());
|
33 |
$currency = Mage::getStoreConfig('payment/onecardpay/currency',Mage::app()->getStore());
|
34 |
$merchant_id = Mage::getStoreConfig('payment/onecardpay/merchant_id',Mage::app()->getStore());
|
35 |
|
36 |
+
$test_mode = Mage::getStoreConfig('payment/onecardpay/test',Mage::app()->getStore());
|
37 |
+
$payment_gateway_url = '';
|
38 |
+
|
39 |
+
if($test_mode) {
|
40 |
+
$payment_gateway_url = 'http://onecard.n2vsb.com/customer/integratedPayment.html';
|
41 |
+
} else {
|
42 |
+
$payment_gateway_url = 'https://www.onecard.net/customer/integratedPayment.html';
|
43 |
+
}
|
44 |
+
|
45 |
//exit();
|
46 |
+
|
47 |
+
/***
|
48 |
+
*
|
49 |
+
* Staging environment URL http://onecard.n2vsb.com/customer/integratedPayment.html
|
50 |
+
* Production environment URL https://www.onecard.net/customer/integratedPayment.html
|
51 |
+
*
|
52 |
+
*
|
53 |
+
*
|
54 |
+
* **/
|
55 |
+
|
56 |
?>
|
57 |
|
58 |
<form name="onecardpaymentform" action="<?php echo $payment_gateway_url;?>" method="post" />
|
app/design/frontend/{default → base}/default/template/onecard/success.phtml
RENAMED
File without changes
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Onecard_Paymentmethod</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license>OSL</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
-
<summary>Onecard
|
10 |
-
<description>
|
11 |
-
<notes>
|
12 |
<authors><author><name>Moe</name><user>Ghashim</user><email>moe@shopgo.me</email></author></authors>
|
13 |
-
<date>
|
14 |
-
<time>
|
15 |
-
<contents><target name="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Onecard_Paymentmethod</name>
|
4 |
+
<version>1.0.2</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>OSL</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
+
<summary>This extension will allow your customers to use Onecard payment gateway.</summary>
|
10 |
+
<description>This extension adds (Onecard Payment Gateway) option to your store payment methods. Upon adding this extension to your store, your customers will be able to complete payment through Onecard Gateway. This extension is customizable as you can configure it to meet your needs. Additionally, it allows you to add the requirements settings for your Onecard merchant account.</description>
|
11 |
+
<notes>Onecard Payment Gateway 1.0.2 release</notes>
|
12 |
<authors><author><name>Moe</name><user>Ghashim</user><email>moe@shopgo.me</email></author></authors>
|
13 |
+
<date>2013-09-07</date>
|
14 |
+
<time>08:19:37</time>
|
15 |
+
<contents><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="onecard"><file name="redirect.phtml" hash="5edeb41ec0f9c8a7a6d2110a49b13de1"/><file name="success.phtml" hash="857f02535c3b6908da9de15013cf4df5"/></dir></dir></dir></dir></dir></target><target name="magelocal"><dir name="Onecard"><dir name="Onecardpay"><dir name="Adminhtml"><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><file name="Currencyoptions.php" hash="fc83780f82046c35823e74b1cd05b3f0"/><file name="Languageoptions.php" hash="c133d13eb64e99d7677bc817182c6c6c"/></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="50e632324654e42c438a831d96863bce"/></dir><dir name="Model"><file name="Pay.php" hash="fa02a9eaf39a0dab41874e1f919b788c"/></dir><dir name="controllers"><file name="PaymentController.php" hash="167001210de55740127c747a87ea282f"/></dir><dir name="etc"><file name="config.xml" hash="016825c62621241a5a1a7fd7998e0242"/><file name="system.xml" hash="270148e3154fc0e71538bb9cfff03013"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Onecard_Onecardpay.xml" hash="9104f0d72530a39a89284678fa446130"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|