Version Notes
Versão 0.1.0
- Versão Teste liberada do TrayCheckout
Versão 0.2.0
- Primeira versão liberada do TrayCheckout
Versão 0.3.0
- Alteração da URL para consulta da nova versão do TrayCheckout.
Versão 0.4.0
- Ajustes nas URLs de integração com o TrayCheckout.
Versão 0.5.0
- Melhorias no código de integração com o TrayCheckout
Download this release
Release Info
Developer | TrayCheckout |
Extension | Tray_CheckoutRedir |
Version | 0.5.0 |
Comparing to | |
See all releases |
Code changes from version 0.4.0 to 0.5.0
app/code/community/Tray/CheckoutRedir/Model/Standard.php
CHANGED
@@ -165,7 +165,8 @@ class Tray_CheckoutRedir_Model_Standard extends Mage_Payment_Model_Method_Abstra
|
|
165 |
$sArr = array();
|
166 |
$number_contact = substr(str_replace(" ","",str_replace("(","",str_replace(")","",str_replace("-","",$a->getTelephone())))),0,2) . substr(str_replace(" ","",str_replace("-","",$a->getTelephone())),-8);
|
167 |
|
168 |
-
|
|
|
169 |
$sArr['order_number']= $this->getConfigData('prefixo').$orderIncrementId;
|
170 |
|
171 |
// Dados de endereço
|
@@ -238,7 +239,7 @@ class Tray_CheckoutRedir_Model_Standard extends Mage_Payment_Model_Method_Abstra
|
|
238 |
{
|
239 |
if ($this->getConfigData('sandbox') == '1')
|
240 |
{
|
241 |
-
return '
|
242 |
} else {
|
243 |
return 'https://checkout.tray.com.br/payment/transaction';
|
244 |
// return 'http://gpereira.checkout.traycheckout.desenvolvimento.tray.intranet/payment/transaction';
|
165 |
$sArr = array();
|
166 |
$number_contact = substr(str_replace(" ","",str_replace("(","",str_replace(")","",str_replace("-","",$a->getTelephone())))),0,2) . substr(str_replace(" ","",str_replace("-","",$a->getTelephone())),-8);
|
167 |
|
168 |
+
$sArr['token_account']= $this->getConfigData('token');
|
169 |
+
$sArr['free']= "MAGENTO_v".(string) Mage::getConfig()->getNode()->modules->Tray_CheckoutRedir->version;
|
170 |
$sArr['order_number']= $this->getConfigData('prefixo').$orderIncrementId;
|
171 |
|
172 |
// Dados de endereço
|
239 |
{
|
240 |
if ($this->getConfigData('sandbox') == '1')
|
241 |
{
|
242 |
+
return 'https://checkout.sandbox.tray.com.br/payment/transaction';
|
243 |
} else {
|
244 |
return 'https://checkout.tray.com.br/payment/transaction';
|
245 |
// return 'http://gpereira.checkout.traycheckout.desenvolvimento.tray.intranet/payment/transaction';
|
app/code/community/Tray/CheckoutRedir/etc/config.xml
CHANGED
@@ -21,7 +21,7 @@
|
|
21 |
<config>
|
22 |
<modules>
|
23 |
<Tray_CheckoutRedir>
|
24 |
-
<version>0.
|
25 |
</Tray_CheckoutRedir>
|
26 |
</modules>
|
27 |
<global>
|
21 |
<config>
|
22 |
<modules>
|
23 |
<Tray_CheckoutRedir>
|
24 |
+
<version>0.5.0</version>
|
25 |
</Tray_CheckoutRedir>
|
26 |
</modules>
|
27 |
<global>
|
app/design/frontend/base/default/layout/tray_checkoutredir.xml
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
-->
|
21 |
-
<layout version="0.
|
22 |
<checkoutredir_standard_payment>
|
23 |
<reference name="head">
|
24 |
<action method="addCss">
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
-->
|
21 |
+
<layout version="0.5.0">
|
22 |
<checkoutredir_standard_payment>
|
23 |
<reference name="head">
|
24 |
<action method="addCss">
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Tray_CheckoutRedir</name>
|
4 |
-
<version>0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
@@ -24,11 +24,15 @@ Versão 0.3.0
|
|
24 |

|
25 |
Versão 0.4.0
|
26 |

|
27 |
-
- Ajustes nas URLs de integração com o TrayCheckout
|
|
|
|
|
|
|
|
|
28 |
<authors><author><name>TrayCheckout</name><user>traycheckout</user><email>integracao@traycheckout.com.br</email></author></authors>
|
29 |
-
<date>2014-04-
|
30 |
-
<time>
|
31 |
-
<contents><target name="magecommunity"><dir name="Tray"><dir name="CheckoutRedir"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Label.php" hash="4b644caa67c70bbea2762ba16db35779"/></dir></dir></dir></dir><file name="Error.php" hash="eabab960a3c44358762cf531d04831fb"/><dir name="Form"><file name="Geral.php" hash="3964d2e6a2db70bc5a909009feb60103"/></dir><dir name="Info"><file name="Geral.php" hash="66bff552a355e90fefff155de67e043a"/></dir><file name="Link.php" hash="a019874d3407309ea721c818ae9dcf16"/><file name="Payment.php" hash="3f5291e1f400fee64fee340646648971"/><file name="Redirect.php" hash="a37c21f8d17b84c1c0cf61bfa1332fc9"/><file name="Return.php" hash="55c255d083acaff20252ba2ee99424d5"/></dir><dir name="Helper"><file name="Adress.php" hash="5c7df6a36b8865b3f076dd4a23514878"/><file name="Data.php" hash="28e9413b57967b95d8626bbae5e58b14"/></dir><dir name="Model"><file name="Config.php" hash="b5ef28f69a0386cae6956a8c50409009"/><file name="Geral.php" hash="ff8e60aa1208f9e3a8f4561e94e97e25"/><dir name="Mysql4"><file name="Setup.php" hash="762ac20737d9a60e706458e2f0af4129"/></dir><file name="Observer.php" hash="1089a6badfbd0a6d49e9920730ecf123"/><dir name="Source"><file name="Country.php" hash="0d88f7c80aa95e3bce20e36364aba098"/><file name="Specificcountries.php" hash="c1ed7900cdb7400f40f63bd6aefdddf0"/><file name="Webcheckout.php" hash="f513de61d0582f7b541872cf8a0bbfaa"/></dir><file name="Standard.php" hash="
|
32 |
<compatible/>
|
33 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.6.0.0</min><max>1.7</max></package></required></dependencies>
|
34 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Tray_CheckoutRedir</name>
|
4 |
+
<version>0.5.0</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 |

|
25 |
Versão 0.4.0
|
26 |

|
27 |
+
- Ajustes nas URLs de integração com o TrayCheckout.
|
28 |
+

|
29 |
+
Versão 0.5.0
|
30 |
+

|
31 |
+
- Melhorias no código de integração com o TrayCheckout</notes>
|
32 |
<authors><author><name>TrayCheckout</name><user>traycheckout</user><email>integracao@traycheckout.com.br</email></author></authors>
|
33 |
+
<date>2014-04-17</date>
|
34 |
+
<time>18:41:33</time>
|
35 |
+
<contents><target name="magecommunity"><dir name="Tray"><dir name="CheckoutRedir"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Label.php" hash="4b644caa67c70bbea2762ba16db35779"/></dir></dir></dir></dir><file name="Error.php" hash="eabab960a3c44358762cf531d04831fb"/><dir name="Form"><file name="Geral.php" hash="3964d2e6a2db70bc5a909009feb60103"/></dir><dir name="Info"><file name="Geral.php" hash="66bff552a355e90fefff155de67e043a"/></dir><file name="Link.php" hash="a019874d3407309ea721c818ae9dcf16"/><file name="Payment.php" hash="3f5291e1f400fee64fee340646648971"/><file name="Redirect.php" hash="a37c21f8d17b84c1c0cf61bfa1332fc9"/><file name="Return.php" hash="55c255d083acaff20252ba2ee99424d5"/></dir><dir name="Helper"><file name="Adress.php" hash="5c7df6a36b8865b3f076dd4a23514878"/><file name="Data.php" hash="28e9413b57967b95d8626bbae5e58b14"/></dir><dir name="Model"><file name="Config.php" hash="b5ef28f69a0386cae6956a8c50409009"/><file name="Geral.php" hash="ff8e60aa1208f9e3a8f4561e94e97e25"/><dir name="Mysql4"><file name="Setup.php" hash="762ac20737d9a60e706458e2f0af4129"/></dir><file name="Observer.php" hash="1089a6badfbd0a6d49e9920730ecf123"/><dir name="Source"><file name="Country.php" hash="0d88f7c80aa95e3bce20e36364aba098"/><file name="Specificcountries.php" hash="c1ed7900cdb7400f40f63bd6aefdddf0"/><file name="Webcheckout.php" hash="f513de61d0582f7b541872cf8a0bbfaa"/></dir><file name="Standard.php" hash="034a9e0b1c8b3973304eeb821d689a39"/></dir><dir name="controllers"><file name="StandardController.php" hash="d3f5fa3065b3f1cc9b9b862d66393fb1"/></dir><dir name="etc"><file name="adminhtml.xml" hash="e8d5be5396fdb8177a327597cb863d94"/><file name="config.xml" hash="fd763756fe7a87d6543a99cdf21c6c6e"/><file name="system.xml" hash="3fbc4d4b6942747257f42bed8cf5507e"/></dir><dir name="sql"><dir name="checkoutredir_setup"><file name="mysql4-install-0.1.7.php" hash="5c2f7dbc2f38eea387c7bea0a53cae28"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="tray"><dir name="checkoutredir"><file name="error.phtml" hash="575e0c286c99e173619eb2be6ee9fde2"/><dir name="form"><file name="geral.phtml" hash="a2c7e26734d1082a4db9706ff785f560"/><dir name="images"><file name="overlay.png" hash="143d209e15051311fdae758b295036b5"/></dir></dir><file name="head.phtml" hash="1f4103303b8c7de8daf1fe23e118fadf"/><dir name="info"><file name="geral.phtml" hash="f7eb257a40bdf69931ba5514859de82a"/></dir><file name="overlay.phtml" hash="28af78c90dd64911b6f857d94b9dbc79"/><file name="payment.phtml" hash="a8d5d3d2f7014711c8360c9dfc35ea92"/><file name="return.phtml" hash="07a60f0d3549e4fb49d7b3ab27917530"/></dir></dir></dir><dir name="layout"><file name="tray_checkoutredir.xml" hash="c1cb5e4907528e0702ca50cabd043989"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="tray"><dir name="checkoutredir"><dir name="form"><file name="geral.phtml" hash="7ea2cacf9c9eef1be914599bf6d00d23"/></dir><file name="getbaseurl.phtml" hash="17ceee44d6bb7af60e69baa39f031b0c"/><dir name="info"><file name="geral.phtml" hash="f7eb257a40bdf69931ba5514859de82a"/></dir></dir></dir></dir><dir name="layout"><file name="tray_checkoutredir.xml" hash="9215e9445b80df8e86c45383af64ab05"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="tray"><dir name="checkoutredir"><dir name="css"><file name="styles.css" hash="5d09463e234fd2f20622f63795019be6"/></dir><dir name="images"><file name="BannerTrayCheckout890px.png" hash="535d5a4a4f190d03df38664dcb6463f8"/><file name="banner_comlogo_formas.jpg" hash="e02a16c32109746786c24db177ddad3a"/><file name="banner_semlogo_formas.jpg" hash="4f13591f17ed96347f136eab09343121"/><file name="banner_semlogo_formas.png" hash="84a82c3d7ed9a42ade9660b8dd16511d"/><file name="close.png" hash="6e2879a324a76e9972ebc98201aae1d8"/><file name="overlay.png" hash="143d209e15051311fdae758b295036b5"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="tray"><dir name="checkoutredir"><dir name="css"><file name="magentomodal.css" hash="2c6dd38e421f644475a121b8d6c96503"/></dir><dir name="images"><file name="btn_bg.gif" hash="37c51a4d48a92da9648dcd3ca011039f"/><file name="content_bg.gif" hash="21278ea0da2d4256f4ced96b6080ba2e"/><file name="top_bg.gif" hash="26f28090de87d64f9b01bf624f89bfe2"/><file name="window_close.png" hash="3af14f053f360bf31f8ba2df73ec7f1e"/></dir><dir name="js"><file name="exibitionsettingswebcheckout.js" hash="430c1ce2ecaab27f4ae1ab9a649667cd"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Tray_CheckoutRedir.xml" hash="7d1a3d97b6c809036a887699f05dc24a"/></dir></target></contents>
|
36 |
<compatible/>
|
37 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.6.0.0</min><max>1.7</max></package></required></dependencies>
|
38 |
</package>
|