Pagantis_Pagantis - Version 3.1.5

Version Notes

Add fix problem with cancelled_url

Download this release

Release Info

Developer Albert Fatsini
Extension Pagantis_Pagantis
Version 3.1.5
Comparing to
See all releases


Code changes from version 3.1.4 to 3.1.5

app/code/community/Pagantis/Pagantis/Model/Webservice/Request.php CHANGED
@@ -401,15 +401,19 @@ class Pagantis_Pagantis_Model_Webservice_Request
401
  * @param string $urlnok
402
  * @throws Exception
403
  */
404
- public function setUrlCancelled($urlKo = '')
405
- {
406
- $urlCancel = Mage::helper('checkout/url')->getCheckoutUrl();
407
- if (strlen(trim($urlCancel)) > 0) {
408
- $this->_urlCancel = $urlCancel;
409
- } else {
410
- throw new \Exception('UrlKo not defined');
411
- }
412
- }
 
 
 
 
413
 
414
  /**
415
  * @param string $urlnok
401
  * @param string $urlnok
402
  * @throws Exception
403
  */
404
+ public function setUrlCancelled($urlKo = '')
405
+ {
406
+ $urlCancel = Mage::helper('checkout/url')->getCheckoutUrl();
407
+ $have_params = strpos($urlCancel,'?');
408
+ if ($have_params !== false){
409
+ $urlCancel = substr($urlCancel,0,$have_params);
410
+ }
411
+ if (strlen(trim($urlCancel)) > 0) {
412
+ $this->_urlCancel = $urlCancel;
413
+ } else {
414
+ throw new \Exception('UrlKo not defined');
415
+ }
416
+ }
417
 
418
  /**
419
  * @param string $urlnok
app/code/community/Pagantis/Pagantis/Model/Webservice/Requestloan.php CHANGED
@@ -419,15 +419,19 @@ class Pagantis_Pagantis_Model_Webservice_Requestloan
419
  * @param string $urlnok
420
  * @throws Exception
421
  */
422
- public function setUrlCancelled($urlKo = '')
423
- {
424
- $urlCancel = Mage::helper('checkout/url')->getCheckoutUrl();
425
- if (strlen(trim($urlCancel)) > 0) {
426
- $this->_urlCancel = $urlCancel;
427
- } else {
428
- throw new \Exception('UrlKo not defined');
429
- }
430
- }
 
 
 
 
431
 
432
  /**
433
  * @param string $urlnok
419
  * @param string $urlnok
420
  * @throws Exception
421
  */
422
+ public function setUrlCancelled($urlKo = '')
423
+ {
424
+ $urlCancel = Mage::helper('checkout/url')->getCheckoutUrl();
425
+ $have_params = strpos($urlCancel,'?');
426
+ if ($have_params !== false){
427
+ $urlCancel = substr($urlCancel,0,$have_params);
428
+ }
429
+ if (strlen(trim($urlCancel)) > 0) {
430
+ $this->_urlCancel = $urlCancel;
431
+ } else {
432
+ throw new \Exception('UrlKo not defined');
433
+ }
434
+ }
435
 
436
  /**
437
  * @param string $urlnok
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Pagantis_Pagantis</name>
4
- <version>3.1.4</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.gnu.org/licenses/gpl-3.0.en.html">GPL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Modulo de Magento para habilitar la pasarela de pago Pagantis en Magento.</summary>
10
  <description>Con este m&#xF3;dulo se podr&#xE1; activar la pasarela de pago Pagantis en Magento y aceptar pago con tarjetas de debito.</description>
11
- <notes>Add cancelled url</notes>
12
  <authors><author><name>Albert Fatsini</name><user>PagaMasTarde</user><email>afatsini@digitalorigin.com</email></author></authors>
13
- <date>2016-09-26</date>
14
- <time>08:36:05</time>
15
- <contents><target name="magecommunity"><dir name="Pagantis"><dir name="Pagantis"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Payment.php" hash="7c2b0d3c7a7bf6d4a9ac02a5b6125af3"/></dir></dir></dir></dir><file name="Form.php" hash="89aded0a5a4754181ee2dd24f480cff9"/><file name="Redirect.php" hash="67d7cb6ddd3089cb5bba2a13c2b7493e"/></dir><dir name="Helper"><file name="Data.php" hash="87b502a4c1bf19e8de4bbf8e80b066df"/></dir><dir name="Model"><file name="Currency.php" hash="a5557e10938898b0213a90dd7be15540"/><file name="Observer.php" hash="fa0e7d5688701cae875a8d14f58a816e"/><file name="Payment.php" hash="559aa4aafc02a1b57426c8c5111369bf"/><dir name="Source"><dir name="Payment"><file name="Currency.php" hash="7e51124f09e2028198fb9587df820809"/><file name="Environment.php" hash="30d6400967acdd8975c5748994c100e6"/></dir></dir><dir name="Webservice"><file name="Client.php" hash="6a14e0ae7ef5180445a3a99aec4717bb"/><file name="Paymentrequest.php" hash="dcf473ea7211a82b55b5374549c3cfc0"/><file name="Request.php" hash="d475e0936c4f69572fcaaecc9fd97380"/><file name="Requestloan.php" hash="8746c7214929f05c6d05713a092e9f7d"/><file name="Response.php" hash="bb1ade5931c5580f4585fc0fdb2bc4b0"/></dir></dir><dir name="controllers"><file name="PagantisController.php" hash="a983c0bcb5b6b8b9d9ad28deb0f1a7df"/></dir><dir name="etc"><file name="config.xml" hash="ac4c7505180457b75b59d40691329db7"/><file name="system.xml" hash="a8a6b2cc704f825ad0688d49b783562c"/></dir><dir name="sql"><dir name="pagantis_setup"><file name="mysql4-install-1.0.0.php" hash="4ec10724709f8d381758409f55cff99d"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="pagantis.xml" hash="4328e44e218a0996f4e2412c545a8e9b"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="pagantis.xml" hash="3db74cdacc8db5d6f43f9addeba290b0"/></dir><dir name="template"><dir name="pagantis"><file name="form.phtml" hash="11cf70a55d8ec9e8ae3c1d94a832eeab"/><file name="pagantis.phtml" hash="99d4efe90cdd7bf3363f61066ad326f1"/><file name="redirect.phtml" hash="6f8766760fc062aec4a185aa5657de59"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Pagantis_Pagantis.xml" hash="c57db60bd03314d7a45f27acc9a9475a"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="base"><dir name="default"><file name="pagantis.css" hash="7d1b6daea9f42c2552ebb5bd5c15596d"/></dir></dir><dir name="default"><dir name="default"><dir name="images"><dir name="pagantis"><file name="logopagamastarde.png" hash="d51fa42e42d9811653df55710a395d07"/><file name="pagantis.png" hash="292403ede1f62affccf06df004ddfe12"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="pagantis"><file name="logopagamastarde.png" hash="d51fa42e42d9811653df55710a395d07"/><file name="pagantis-fav.png" hash="c4e162b51c0792ff25385506d7998818"/><file name="pagantis.png" hash="292403ede1f62affccf06df004ddfe12"/></dir></dir><dir name="js"><dir name="fancybox"><file name="CHANGELOG.md" hash="f7712236f40261059cd9d017022186d1"/><file name="README.md" hash="b10a4a6f56cae56f392ac9a3dde13b1a"/><file name="blank.gif" hash="325472601571f31e1bf00674c368d335"/><file name="fancybox_loading.gif" hash="328cc0f6c78211485058d460e80f4fa8"/><file name="fancybox_loading@2x.gif" hash="f92938639fa894a0e8ded1c3368abe98"/><file name="fancybox_overlay.png" hash="77aeaa52715b898b73c74d68c630330e"/><file name="fancybox_sprite.png" hash="783d4031fe50c3d83c960911e1fbc705"/><file name="fancybox_sprite@2x.png" hash="ed9970ce22242421e66ff150aa97fe5f"/><dir name="helpers"><file name="fancybox_buttons.png" hash="b448080f8615e664b7788c7003803b59"/><file name="jquery.fancybox-buttons.css" hash="cac75538c2e3ddfadef839feaca8e356"/><file name="jquery.fancybox-buttons.js" hash="f53c246661fb995a3f12e67fa38e0fa0"/><file name="jquery.fancybox-media.js" hash="c017067f48d97ec4a077ccdf056e6a2e"/><file name="jquery.fancybox-thumbs.css" hash="52ddd84a9f42c1d4cd86d518a7f7e8bc"/><file name="jquery.fancybox-thumbs.js" hash="cf1fc1df534eede4cb460c5cbd71aba6"/></dir><file name="jquery.fancybox.css" hash="6c55951ce1e3115711f63f99b7501f3a"/><file name="jquery.fancybox.js" hash="921e9cb04ad6e2559869ec845c5be39b"/><file name="jquery.fancybox.pack.js" hash="cc9e759f24ba773aeef8a131889d3728"/><dir name="lib"><file name="jquery-1.10.1.min.js" hash="33d85132f0154466fc017dd05111873d"/><file name="jquery-1.9.0.min.js" hash="0652da382b6fceb033dfe2b6c06d4d11"/><file name="jquery.mousewheel-3.0.6.pack.js" hash="fde6509fae2cafdb6d97e4a9a60cce66"/></dir><file name="sprite.psd" hash="ee49b495e957508bee6458f7101b5beb"/><file name=".gitattributes" hash="4ea979410c86e03f8c6f61892b28fb82"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>8.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Pagantis_Pagantis</name>
4
+ <version>3.1.5</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.gnu.org/licenses/gpl-3.0.en.html">GPL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Modulo de Magento para habilitar la pasarela de pago Pagantis en Magento.</summary>
10
  <description>Con este m&#xF3;dulo se podr&#xE1; activar la pasarela de pago Pagantis en Magento y aceptar pago con tarjetas de debito.</description>
11
+ <notes>Add fix problem with cancelled_url</notes>
12
  <authors><author><name>Albert Fatsini</name><user>PagaMasTarde</user><email>afatsini@digitalorigin.com</email></author></authors>
13
+ <date>2016-10-17</date>
14
+ <time>10:34:42</time>
15
+ <contents><target name="magecommunity"><dir name="Pagantis"><dir name="Pagantis"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Payment.php" hash="7c2b0d3c7a7bf6d4a9ac02a5b6125af3"/></dir></dir></dir></dir><file name="Form.php" hash="89aded0a5a4754181ee2dd24f480cff9"/><file name="Redirect.php" hash="67d7cb6ddd3089cb5bba2a13c2b7493e"/></dir><dir name="Helper"><file name="Data.php" hash="87b502a4c1bf19e8de4bbf8e80b066df"/></dir><dir name="Model"><file name="Currency.php" hash="a5557e10938898b0213a90dd7be15540"/><file name="Observer.php" hash="fa0e7d5688701cae875a8d14f58a816e"/><file name="Payment.php" hash="559aa4aafc02a1b57426c8c5111369bf"/><dir name="Source"><dir name="Payment"><file name="Currency.php" hash="7e51124f09e2028198fb9587df820809"/><file name="Environment.php" hash="30d6400967acdd8975c5748994c100e6"/></dir></dir><dir name="Webservice"><file name="Client.php" hash="6a14e0ae7ef5180445a3a99aec4717bb"/><file name="Paymentrequest.php" hash="dcf473ea7211a82b55b5374549c3cfc0"/><file name="Request.php" hash="8d215a2f3313c2571cd66952396821e6"/><file name="Requestloan.php" hash="aaf43abe80834c1663a5cc60dbcf98bd"/><file name="Response.php" hash="bb1ade5931c5580f4585fc0fdb2bc4b0"/></dir></dir><dir name="controllers"><file name="PagantisController.php" hash="a983c0bcb5b6b8b9d9ad28deb0f1a7df"/></dir><dir name="etc"><file name="config.xml" hash="ac4c7505180457b75b59d40691329db7"/><file name="system.xml" hash="a8a6b2cc704f825ad0688d49b783562c"/></dir><dir name="sql"><dir name="pagantis_setup"><file name="mysql4-install-1.0.0.php" hash="4ec10724709f8d381758409f55cff99d"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="pagantis.xml" hash="4328e44e218a0996f4e2412c545a8e9b"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="pagantis.xml" hash="3db74cdacc8db5d6f43f9addeba290b0"/></dir><dir name="template"><dir name="pagantis"><file name="form.phtml" hash="11cf70a55d8ec9e8ae3c1d94a832eeab"/><file name="pagantis.phtml" hash="99d4efe90cdd7bf3363f61066ad326f1"/><file name="redirect.phtml" hash="6f8766760fc062aec4a185aa5657de59"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Pagantis_Pagantis.xml" hash="c57db60bd03314d7a45f27acc9a9475a"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="base"><dir name="default"><file name="pagantis.css" hash="7d1b6daea9f42c2552ebb5bd5c15596d"/></dir></dir><dir name="default"><dir name="default"><dir name="images"><dir name="pagantis"><file name="logopagamastarde.png" hash="d51fa42e42d9811653df55710a395d07"/><file name="pagantis.png" hash="292403ede1f62affccf06df004ddfe12"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="pagantis"><file name="logopagamastarde.png" hash="d51fa42e42d9811653df55710a395d07"/><file name="pagantis-fav.png" hash="c4e162b51c0792ff25385506d7998818"/><file name="pagantis.png" hash="292403ede1f62affccf06df004ddfe12"/></dir></dir><dir name="js"><dir name="fancybox"><file name="CHANGELOG.md" hash="f7712236f40261059cd9d017022186d1"/><file name="README.md" hash="b10a4a6f56cae56f392ac9a3dde13b1a"/><file name="blank.gif" hash="325472601571f31e1bf00674c368d335"/><file name="fancybox_loading.gif" hash="328cc0f6c78211485058d460e80f4fa8"/><file name="fancybox_loading@2x.gif" hash="f92938639fa894a0e8ded1c3368abe98"/><file name="fancybox_overlay.png" hash="77aeaa52715b898b73c74d68c630330e"/><file name="fancybox_sprite.png" hash="783d4031fe50c3d83c960911e1fbc705"/><file name="fancybox_sprite@2x.png" hash="ed9970ce22242421e66ff150aa97fe5f"/><dir name="helpers"><file name="fancybox_buttons.png" hash="b448080f8615e664b7788c7003803b59"/><file name="jquery.fancybox-buttons.css" hash="cac75538c2e3ddfadef839feaca8e356"/><file name="jquery.fancybox-buttons.js" hash="f53c246661fb995a3f12e67fa38e0fa0"/><file name="jquery.fancybox-media.js" hash="c017067f48d97ec4a077ccdf056e6a2e"/><file name="jquery.fancybox-thumbs.css" hash="52ddd84a9f42c1d4cd86d518a7f7e8bc"/><file name="jquery.fancybox-thumbs.js" hash="cf1fc1df534eede4cb460c5cbd71aba6"/></dir><file name="jquery.fancybox.css" hash="6c55951ce1e3115711f63f99b7501f3a"/><file name="jquery.fancybox.js" hash="921e9cb04ad6e2559869ec845c5be39b"/><file name="jquery.fancybox.pack.js" hash="cc9e759f24ba773aeef8a131889d3728"/><dir name="lib"><file name="jquery-1.10.1.min.js" hash="33d85132f0154466fc017dd05111873d"/><file name="jquery-1.9.0.min.js" hash="0652da382b6fceb033dfe2b6c06d4d11"/><file name="jquery.mousewheel-3.0.6.pack.js" hash="fde6509fae2cafdb6d97e4a9a60cce66"/></dir><file name="sprite.psd" hash="ee49b495e957508bee6458f7101b5beb"/><file name=".gitattributes" hash="4ea979410c86e03f8c6f61892b28fb82"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>8.0.0</max></php></required></dependencies>
18
  </package>