Version Notes
Introduction of sandbox feature
Download this release
Release Info
Developer | J2T DESIGN |
Extension | J2t_Payplug |
Version | 1.0.9 |
Comparing to | |
See all releases |
Code changes from version 1.0.8 to 1.0.9
app/code/community/J2t/Payplug/.DS_Store
ADDED
Binary file
|
app/code/community/J2t/Payplug/Model/PaymentMethod.php
CHANGED
@@ -138,11 +138,16 @@ class J2t_Payplug_Model_PaymentMethod extends Mage_Payment_Model_Method_Abstract
|
|
138 |
'email' => $order->getCustomerEmail(),
|
139 |
'firstname' => $order->getCustomerFirstname(),
|
140 |
'lastname' => $order->getCustomerLastname(),
|
|
|
|
|
141 |
//'order' => $this->getQuote()->getId(),
|
142 |
'order' => $orderIncrementId,
|
143 |
'customer' => $order->getCustomerId()
|
144 |
);
|
145 |
|
|
|
|
|
|
|
146 |
|
147 |
$url_params = http_build_query($params);
|
148 |
$privatekey = Mage::getStoreConfig('payment/j2tpayplug/private_key', $this->getQuote()->getStoreId());
|
138 |
'email' => $order->getCustomerEmail(),
|
139 |
'firstname' => $order->getCustomerFirstname(),
|
140 |
'lastname' => $order->getCustomerLastname(),
|
141 |
+
'first_name' => $order->getCustomerFirstname(),
|
142 |
+
'last_name' => $order->getCustomerLastname(),
|
143 |
//'order' => $this->getQuote()->getId(),
|
144 |
'order' => $orderIncrementId,
|
145 |
'customer' => $order->getCustomerId()
|
146 |
);
|
147 |
|
148 |
+
if(Mage::getStoreConfig('payment/j2tpayplug/sandbox', $this->getQuote()->getStoreId())){
|
149 |
+
$params['is_test'] = 'true';
|
150 |
+
}
|
151 |
|
152 |
$url_params = http_build_query($params);
|
153 |
$privatekey = Mage::getStoreConfig('payment/j2tpayplug/private_key', $this->getQuote()->getStoreId());
|
app/code/community/J2t/Payplug/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<J2t_Payplug>
|
5 |
-
<version>1.0.
|
6 |
</J2t_Payplug>
|
7 |
</modules>
|
8 |
|
@@ -120,6 +120,7 @@
|
|
120 |
<payment>
|
121 |
<j2tpayplug>
|
122 |
<active>0</active>
|
|
|
123 |
<model>j2tpayplug/paymentMethod</model>
|
124 |
<new_order_status>pending</new_order_status>
|
125 |
<complete_order_status>processing</complete_order_status>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<J2t_Payplug>
|
5 |
+
<version>1.0.9</version>
|
6 |
</J2t_Payplug>
|
7 |
</modules>
|
8 |
|
120 |
<payment>
|
121 |
<j2tpayplug>
|
122 |
<active>0</active>
|
123 |
+
<sandbox>0</sandbox>
|
124 |
<model>j2tpayplug/paymentMethod</model>
|
125 |
<new_order_status>pending</new_order_status>
|
126 |
<complete_order_status>processing</complete_order_status>
|
app/code/community/J2t/Payplug/etc/system.xml
CHANGED
@@ -70,7 +70,7 @@
|
|
70 |
<label>Enabled</label>
|
71 |
<frontend_type>select</frontend_type>
|
72 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
73 |
-
<sort_order>
|
74 |
<show_in_default>1</show_in_default>
|
75 |
<show_in_website>1</show_in_website>
|
76 |
<show_in_store>0</show_in_store>
|
@@ -91,10 +91,22 @@
|
|
91 |
</script>
|
92 |
]]></comment>
|
93 |
</active>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
<title translate="label">
|
95 |
<label>Title</label>
|
96 |
<frontend_type>text</frontend_type>
|
97 |
-
<sort_order>
|
98 |
<show_in_default>1</show_in_default>
|
99 |
<show_in_website>1</show_in_website>
|
100 |
<show_in_store>0</show_in_store>
|
@@ -104,7 +116,7 @@
|
|
104 |
<label>Account details</label>
|
105 |
<frontend_type>text</frontend_type>
|
106 |
<frontend_model>j2tpayplug/adminhtml_system_config_accountdetails</frontend_model>
|
107 |
-
<sort_order>
|
108 |
<show_in_default>1</show_in_default>
|
109 |
<show_in_website>1</show_in_website>
|
110 |
<show_in_store>0</show_in_store>
|
@@ -114,7 +126,7 @@
|
|
114 |
<private_key translate="label">
|
115 |
<label>Private Key</label>
|
116 |
<frontend_type>textarea</frontend_type>
|
117 |
-
<sort_order>
|
118 |
<show_in_default>1</show_in_default>
|
119 |
<show_in_website>1</show_in_website>
|
120 |
<show_in_store>0</show_in_store>
|
@@ -122,7 +134,7 @@
|
|
122 |
<public_key translate="label">
|
123 |
<label>Public Key</label>
|
124 |
<frontend_type>textarea</frontend_type>
|
125 |
-
<sort_order>
|
126 |
<show_in_default>1</show_in_default>
|
127 |
<show_in_website>1</show_in_website>
|
128 |
<show_in_store>0</show_in_store>
|
@@ -130,7 +142,7 @@
|
|
130 |
<module_url translate="label">
|
131 |
<label>Module URL</label>
|
132 |
<frontend_type>text</frontend_type>
|
133 |
-
<sort_order>
|
134 |
<show_in_default>1</show_in_default>
|
135 |
<show_in_website>1</show_in_website>
|
136 |
<show_in_store>0</show_in_store>
|
@@ -138,7 +150,7 @@
|
|
138 |
<min_amount translate="label">
|
139 |
<label>Min Amount</label>
|
140 |
<frontend_type>text</frontend_type>
|
141 |
-
<sort_order>
|
142 |
<show_in_default>1</show_in_default>
|
143 |
<show_in_website>1</show_in_website>
|
144 |
<show_in_store>0</show_in_store>
|
@@ -146,7 +158,7 @@
|
|
146 |
<max_amount translate="label">
|
147 |
<label>Max Amount</label>
|
148 |
<frontend_type>text</frontend_type>
|
149 |
-
<sort_order>
|
150 |
<show_in_default>1</show_in_default>
|
151 |
<show_in_website>1</show_in_website>
|
152 |
<show_in_store>0</show_in_store>
|
@@ -154,7 +166,7 @@
|
|
154 |
<currencies translate="label">
|
155 |
<label>Currencies</label>
|
156 |
<frontend_type>text</frontend_type>
|
157 |
-
<sort_order>
|
158 |
<show_in_default>1</show_in_default>
|
159 |
<show_in_website>1</show_in_website>
|
160 |
<show_in_store>0</show_in_store>
|
@@ -163,7 +175,7 @@
|
|
163 |
<user translate="label">
|
164 |
<label>User</label>
|
165 |
<frontend_type>text</frontend_type>
|
166 |
-
<sort_order>
|
167 |
<show_in_default>1</show_in_default>
|
168 |
<show_in_website>1</show_in_website>
|
169 |
</user>
|
@@ -171,7 +183,7 @@
|
|
171 |
<label>Password</label>
|
172 |
<frontend_type>obscure</frontend_type>
|
173 |
<backend_model>adminhtml/system_config_backend_encrypted</backend_model>
|
174 |
-
<sort_order>
|
175 |
<show_in_default>1</show_in_default>
|
176 |
<show_in_website>1</show_in_website>
|
177 |
</pwd>
|
@@ -180,7 +192,7 @@
|
|
180 |
<label>New order status</label>
|
181 |
<frontend_type>select</frontend_type>
|
182 |
<source_model>adminhtml/system_config_source_order_status_newprocessing</source_model>
|
183 |
-
<sort_order>
|
184 |
<show_in_default>1</show_in_default>
|
185 |
<show_in_website>1</show_in_website>
|
186 |
</new_order_status>
|
@@ -189,7 +201,7 @@
|
|
189 |
<label>Approved order status</label>
|
190 |
<frontend_type>select</frontend_type>
|
191 |
<source_model>adminhtml/system_config_source_order_status_processing</source_model>
|
192 |
-
<sort_order>
|
193 |
<show_in_default>1</show_in_default>
|
194 |
<show_in_website>1</show_in_website>
|
195 |
</complete_order_status>
|
@@ -198,7 +210,7 @@
|
|
198 |
<label>Rejected order status</label>
|
199 |
<frontend_type>select</frontend_type>
|
200 |
<source_model>adminhtml/system_config_source_order_status</source_model>
|
201 |
-
<sort_order>
|
202 |
<show_in_default>1</show_in_default>
|
203 |
<show_in_website>1</show_in_website>
|
204 |
</cancel_order_status>
|
@@ -207,7 +219,7 @@
|
|
207 |
<label>Invoice when complete</label>
|
208 |
<frontend_type>select</frontend_type>
|
209 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
210 |
-
<sort_order>
|
211 |
<show_in_default>1</show_in_default>
|
212 |
<show_in_website>1</show_in_website>
|
213 |
</invoice>
|
@@ -215,7 +227,7 @@
|
|
215 |
<allowspecific translate="label">
|
216 |
<label>Payment from Applicable Countries</label>
|
217 |
<frontend_type>allowspecific</frontend_type>
|
218 |
-
<sort_order>
|
219 |
<source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
|
220 |
<show_in_default>1</show_in_default>
|
221 |
<show_in_website>1</show_in_website>
|
@@ -224,7 +236,7 @@
|
|
224 |
<specificcountry translate="label">
|
225 |
<label>Payment from Specific Countries</label>
|
226 |
<frontend_type>multiselect</frontend_type>
|
227 |
-
<sort_order>
|
228 |
<source_model>adminhtml/system_config_source_country</source_model>
|
229 |
<show_in_default>1</show_in_default>
|
230 |
<show_in_website>1</show_in_website>
|
@@ -235,7 +247,7 @@
|
|
235 |
<sort_order translate="label">
|
236 |
<label>Sort Order</label>
|
237 |
<frontend_type>text</frontend_type>
|
238 |
-
<sort_order>
|
239 |
<show_in_default>1</show_in_default>
|
240 |
<show_in_website>1</show_in_website>
|
241 |
<show_in_store>0</show_in_store>
|
70 |
<label>Enabled</label>
|
71 |
<frontend_type>select</frontend_type>
|
72 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
73 |
+
<sort_order>10</sort_order>
|
74 |
<show_in_default>1</show_in_default>
|
75 |
<show_in_website>1</show_in_website>
|
76 |
<show_in_store>0</show_in_store>
|
91 |
</script>
|
92 |
]]></comment>
|
93 |
</active>
|
94 |
+
|
95 |
+
<sandbox translate="label">
|
96 |
+
<label>Sandbox</label>
|
97 |
+
<frontend_type>select</frontend_type>
|
98 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
99 |
+
<sort_order>20</sort_order>
|
100 |
+
<show_in_default>1</show_in_default>
|
101 |
+
<show_in_website>1</show_in_website>
|
102 |
+
<show_in_store>1</show_in_store>
|
103 |
+
<comment><![CDATA[Set yes to use sandbox mode.]]></comment>
|
104 |
+
</sandbox>
|
105 |
+
|
106 |
<title translate="label">
|
107 |
<label>Title</label>
|
108 |
<frontend_type>text</frontend_type>
|
109 |
+
<sort_order>30</sort_order>
|
110 |
<show_in_default>1</show_in_default>
|
111 |
<show_in_website>1</show_in_website>
|
112 |
<show_in_store>0</show_in_store>
|
116 |
<label>Account details</label>
|
117 |
<frontend_type>text</frontend_type>
|
118 |
<frontend_model>j2tpayplug/adminhtml_system_config_accountdetails</frontend_model>
|
119 |
+
<sort_order>40</sort_order>
|
120 |
<show_in_default>1</show_in_default>
|
121 |
<show_in_website>1</show_in_website>
|
122 |
<show_in_store>0</show_in_store>
|
126 |
<private_key translate="label">
|
127 |
<label>Private Key</label>
|
128 |
<frontend_type>textarea</frontend_type>
|
129 |
+
<sort_order>50</sort_order>
|
130 |
<show_in_default>1</show_in_default>
|
131 |
<show_in_website>1</show_in_website>
|
132 |
<show_in_store>0</show_in_store>
|
134 |
<public_key translate="label">
|
135 |
<label>Public Key</label>
|
136 |
<frontend_type>textarea</frontend_type>
|
137 |
+
<sort_order>60</sort_order>
|
138 |
<show_in_default>1</show_in_default>
|
139 |
<show_in_website>1</show_in_website>
|
140 |
<show_in_store>0</show_in_store>
|
142 |
<module_url translate="label">
|
143 |
<label>Module URL</label>
|
144 |
<frontend_type>text</frontend_type>
|
145 |
+
<sort_order>70</sort_order>
|
146 |
<show_in_default>1</show_in_default>
|
147 |
<show_in_website>1</show_in_website>
|
148 |
<show_in_store>0</show_in_store>
|
150 |
<min_amount translate="label">
|
151 |
<label>Min Amount</label>
|
152 |
<frontend_type>text</frontend_type>
|
153 |
+
<sort_order>80</sort_order>
|
154 |
<show_in_default>1</show_in_default>
|
155 |
<show_in_website>1</show_in_website>
|
156 |
<show_in_store>0</show_in_store>
|
158 |
<max_amount translate="label">
|
159 |
<label>Max Amount</label>
|
160 |
<frontend_type>text</frontend_type>
|
161 |
+
<sort_order>90</sort_order>
|
162 |
<show_in_default>1</show_in_default>
|
163 |
<show_in_website>1</show_in_website>
|
164 |
<show_in_store>0</show_in_store>
|
166 |
<currencies translate="label">
|
167 |
<label>Currencies</label>
|
168 |
<frontend_type>text</frontend_type>
|
169 |
+
<sort_order>100</sort_order>
|
170 |
<show_in_default>1</show_in_default>
|
171 |
<show_in_website>1</show_in_website>
|
172 |
<show_in_store>0</show_in_store>
|
175 |
<user translate="label">
|
176 |
<label>User</label>
|
177 |
<frontend_type>text</frontend_type>
|
178 |
+
<sort_order>110</sort_order>
|
179 |
<show_in_default>1</show_in_default>
|
180 |
<show_in_website>1</show_in_website>
|
181 |
</user>
|
183 |
<label>Password</label>
|
184 |
<frontend_type>obscure</frontend_type>
|
185 |
<backend_model>adminhtml/system_config_backend_encrypted</backend_model>
|
186 |
+
<sort_order>120</sort_order>
|
187 |
<show_in_default>1</show_in_default>
|
188 |
<show_in_website>1</show_in_website>
|
189 |
</pwd>
|
192 |
<label>New order status</label>
|
193 |
<frontend_type>select</frontend_type>
|
194 |
<source_model>adminhtml/system_config_source_order_status_newprocessing</source_model>
|
195 |
+
<sort_order>130</sort_order>
|
196 |
<show_in_default>1</show_in_default>
|
197 |
<show_in_website>1</show_in_website>
|
198 |
</new_order_status>
|
201 |
<label>Approved order status</label>
|
202 |
<frontend_type>select</frontend_type>
|
203 |
<source_model>adminhtml/system_config_source_order_status_processing</source_model>
|
204 |
+
<sort_order>140</sort_order>
|
205 |
<show_in_default>1</show_in_default>
|
206 |
<show_in_website>1</show_in_website>
|
207 |
</complete_order_status>
|
210 |
<label>Rejected order status</label>
|
211 |
<frontend_type>select</frontend_type>
|
212 |
<source_model>adminhtml/system_config_source_order_status</source_model>
|
213 |
+
<sort_order>150</sort_order>
|
214 |
<show_in_default>1</show_in_default>
|
215 |
<show_in_website>1</show_in_website>
|
216 |
</cancel_order_status>
|
219 |
<label>Invoice when complete</label>
|
220 |
<frontend_type>select</frontend_type>
|
221 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
222 |
+
<sort_order>160</sort_order>
|
223 |
<show_in_default>1</show_in_default>
|
224 |
<show_in_website>1</show_in_website>
|
225 |
</invoice>
|
227 |
<allowspecific translate="label">
|
228 |
<label>Payment from Applicable Countries</label>
|
229 |
<frontend_type>allowspecific</frontend_type>
|
230 |
+
<sort_order>170</sort_order>
|
231 |
<source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
|
232 |
<show_in_default>1</show_in_default>
|
233 |
<show_in_website>1</show_in_website>
|
236 |
<specificcountry translate="label">
|
237 |
<label>Payment from Specific Countries</label>
|
238 |
<frontend_type>multiselect</frontend_type>
|
239 |
+
<sort_order>180</sort_order>
|
240 |
<source_model>adminhtml/system_config_source_country</source_model>
|
241 |
<show_in_default>1</show_in_default>
|
242 |
<show_in_website>1</show_in_website>
|
247 |
<sort_order translate="label">
|
248 |
<label>Sort Order</label>
|
249 |
<frontend_type>text</frontend_type>
|
250 |
+
<sort_order>190</sort_order>
|
251 |
<show_in_default>1</show_in_default>
|
252 |
<show_in_website>1</show_in_website>
|
253 |
<show_in_store>0</show_in_store>
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>J2t_Payplug</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/OSL-3.0">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>PayPlug payment gateway</summary>
|
10 |
<description>It allows to pay with PayPlug</description>
|
11 |
-
<notes>
|
12 |
<authors><author><name>J2T Design</name><user>j2tdesign</user><email>j2tdesign.net@gmail.com</email></author></authors>
|
13 |
-
<date>2015-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="J2t"><dir name="Payplug"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Accountdetails.php" hash="c89acdccd51f392dac8dfd032013683f"/></dir></dir></dir><file name="Form.php" hash="0c89710b2d4e94d76e9cc4b37ae3e7a6"/><file name="Info.php" hash="1879d72dca0d0762afa48d7039d07925"/></dir><dir name="Helper"><file name="Data.php" hash="123d5de46cd1577e867e8ab9b0236d09"/></dir><dir name="Model"><file name="Feed.php" hash="a7a040e81827020e74f22f760b8f3f64"/><file name="Observer.php" hash="b385fea0af6f8765f296a2b213b3f10c"/><file name="PaymentMethod.php" hash="
|
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>J2t_Payplug</name>
|
4 |
+
<version>1.0.9</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/OSL-3.0">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>PayPlug payment gateway</summary>
|
10 |
<description>It allows to pay with PayPlug</description>
|
11 |
+
<notes>Introduction of sandbox feature</notes>
|
12 |
<authors><author><name>J2T Design</name><user>j2tdesign</user><email>j2tdesign.net@gmail.com</email></author></authors>
|
13 |
+
<date>2015-04-13</date>
|
14 |
+
<time>07:19:17</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="J2t"><dir name="Payplug"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Accountdetails.php" hash="c89acdccd51f392dac8dfd032013683f"/></dir></dir></dir><file name="Form.php" hash="0c89710b2d4e94d76e9cc4b37ae3e7a6"/><file name="Info.php" hash="1879d72dca0d0762afa48d7039d07925"/></dir><dir name="Helper"><file name="Data.php" hash="123d5de46cd1577e867e8ab9b0236d09"/></dir><dir name="Model"><file name="Feed.php" hash="a7a040e81827020e74f22f760b8f3f64"/><file name="Observer.php" hash="b385fea0af6f8765f296a2b213b3f10c"/><file name="PaymentMethod.php" hash="c57e3ee3f1c22d2261369bdf3c1af331"/></dir><dir name="controllers"><file name="PaymentController.php" hash="cfb478f2726e775ac35c80ad0defc0f8"/></dir><dir name="etc"><file name="config.xml" hash="c4099f65e19234f9c7013c522ad93148"/><file name="system.xml" hash="1f942f50f54301e077328760f5cbc652"/></dir><file name=".DS_Store" hash="b2038aed8e98a37c493a010ca2c67fbc"/></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="j2tpayplug"><file name="form.phtml" hash="6edeec68d52f962cfe43b703d9925302"/><file name="info.phtml" hash="7270ac2591cb0ad18915d8f5e92bef69"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="j2tpayplug.xml" hash="b4f4d0cbe73cbd00bff554680f531741"/></dir><dir name="template"><dir name="j2tpayplug"><file name="info.phtml" hash="f6aa9ac4ef5ec0aa207e4b5a03666bd1"/><dir name="pdf"><file name="info.phtml" hash="007c81c2ae9e9b16522924a8073294ef"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="J2t_Payplug.xml" hash="dccffdae1d3e6bae6c2e01ed7ec0cff3"/></dir></target><target name="magelocale"><dir><dir name="fr_FR"><file name="j2t_payplug.csv" hash="e460bf539b3b0dc1632a1a7f616bcdfa"/></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><file name="j2t_all_admin_1.css" hash="6d64fbd2a114cd820c11017c61bd0897"/><dir name="images"><file name="j2t_all_1.png" hash="19abc9040d74479f19eeb0c686f84766"/></dir></dir></dir></dir></target><target name="magemedia"><dir name="."><file name="icon_accepted_cards_payplug.gif" hash="5270a1ef6a85f679504849cdb1dccb2a"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|