Zen Cart Logo
Forums / Addon Payment Modules / Heeeelp: Problems with atos payment module returning url

Heeeelp: Problems with atos payment module returning url

Locked

Views: 1,419

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
9 Jul 2008, 10:29 AM
#1
timbaloo avatar

timbaloo

New Zenner

Join Date:
Aug 2006
Posts:
18
Plugin Contributions:
0

Heeeelp: Problems with atos payment module returning url

Hi,

I 've downloaded and installed the cdelab atos module that can be found here in the download section.

I had to make some very little adjustements because the site is on a mutualized host wich means i cannot use safe_mode:

So I replaced both shell_exec "( "$command 2>&1" );" with exec "( "$command" );") on lines 589 and 628.
And of course changed the bin' paths with those given by my host company.

Everything work fine and payment is ok but i cannot return to my site because there are 2 antislashes "" in the url placed before each param "?" and "&":
RETURN_URL (https://www.kiolla.com/kiolla_testshop/index.php**?main_page=atos_response**&zenid=263f379ee4c720ea4c4936af8c37fc07) and so the order is not validated in zc...

I put on the debug mode (creates some bugs but you can see params), so i can see the 3 urls (normal_return_url, cancel_return_url and automatic_response_url) sent in the request from my zc and they do contain the antislashes...
What is most strange is that in the error generated by debug mode, these urls display correctly in the params...

I've been thinking hard and looking in many forums for days but could not find any clue..................:frusty: :frusty: :frusty:

Please, any help would be higly appreciated because i am seriously starting to be crazy

You can see it in the testshop here
For test user
login: [email protected]
password: [email protected]

Thanks in advance,
Tim

9 Jul 2008, 12:14 PM
#2
timbaloo avatar

timbaloo

New Zenner

Join Date:
Aug 2006
Posts:
18
Plugin Contributions:
0

Re: Heeeelp: Problems with atos payment module returning url

Sorry, I forgot this, the lines used to generate the urls

 

$command  = MODULE_PAYMENT_ATOS_BIN_REQUEST;
      $command .= " " . $this->os_info['quote'] . "pathfile=" . $pathfile . $this->os_info['quote'];
      $command .= " merchant_id=" . MODULE_PAYMENT_ATOS_ID;
      $command .= " amount=" . $amount;
      $command .= " currency_code=" . $this->_getCurrencyCode(DEFAULT_CURRENCY);
      $command .= " language=" . $this->_getLanguageCode($language);

      $link = zen_href_link(FILENAME_ATOS_RESPONSE, zen_session_name() . '=' . zen_session_id(), 'SSL', false);
      $link = ereg_replace('&', '&', $link);
      $command .= " " . $this->os_info['quote'] . "normal_return_url=" . $link . $this->os_info['quote'];
      $command .= " " . $this->os_info['quote'] . "cancel_return_url=" . $link . $this->os_info['quote'];

      $link = zen_href_link(FILENAME_CHECKOUT_PROCESS, zen_session_name() . '=' . zen_session_id(), 'NONSSL', false);
      $link = ereg_replace('&', '&', $link);
      $command .= " " . $this->os_info['quote'] . "automatic_response_url=" . $link . $this->os_info['quote'];

      $command .= " customer_id=" . $customer_id;
      $command .= " customer_ip_address=" . $_SERVER['REMOTE_ADDR'];