when a customers returns from the page of our payment processor, Pagosonline.net, to checkout_succes.php, they get send to the default language. As we have both English and Spanish(default) installed, I need it to return to the language that the customer started his session in.

This is the response URL that their module uses:

$url_respuesta= HTTP_SERVER . DIR_WS_CATALOG . "index.php?main_page=checkout_success";

I tried many things and this one got me the closest:

$url_respuesta= 'www.cazadecasa.com/includes/languages/' . $_SESSION['language'] . '/unik/'. "checkout_process.php";

result is:

http://www.mundounik.com/es/includes...ut_process.php

But the "es" should not be there!

Anyone know how I can make this work with different languages? Not sure if it is relevant but I am using also SSU (SEO URLīs).

Our page is: www.mundounik.com

Thanks!