Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    May 2009
    Location
    Bogota, Colombia
    Posts
    29
    Plugin Contributions
    0

    Default Pagosonline.net Payment module returns to wrong URL

    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!

  2. #2
    Join Date
    Aug 2009
    Posts
    2
    Plugin Contributions
    0

    Default Re: Pagosonline.net Payment module returns to wrong URL

    Good afternoon:

    This is like PHP builds it:

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

    I was checking your website and this is how it builds it:

    name="url_respuesta" value="http://www.mundounik.com/index.php?main_page=checkout_success"

    I modified /includes/modules/payment/pagosonline.php like this, but I don't have a Zencart with two languajes, so these are my suggestions:


    //pagina de respuesta

    $url_respuesta= HTTP_SERVER . $_SESSION['languages_code'] . DIR_WS_CATALOG . "index.php?main_page=checkout_success";


    ---------------------- domain name . languaje . catalog root . "index.php?main_page=checkout_success"; ------

    If it doesn't work try to put them like this:

    if(['languages_code']=='es']
    {
    $url_respuesta="https://www.mundounik.com/es/index.php?main_page=checkout_success";
    }

    else if ($_SESSION['languages_code']=='en')
    {
    $url_respuesta= "https://www.mundounik.com/en/index.php?main_page=checkout_success";
    }


    I hope this help you.

    Good luck

  3. #3
    Join Date
    May 2009
    Location
    Bogota, Colombia
    Posts
    29
    Plugin Contributions
    0

    Default Re: Pagosonline.net Payment module returns to wrong URL

    thanks for your reply!

    unfortunately both solutions send me back to the spanish version of the checkout success. I can see in the browser that the link gets send back properly but than it gets changed for some reason..

    Any idea why?
    Tienda Virtual de relojes innovadores / Online store for innovative watches:

    WWW.MUNDOUNIK.COM

  4. #4
    Join Date
    May 2009
    Location
    Bogota, Colombia
    Posts
    29
    Plugin Contributions
    0

    Default Re: Pagosonline.net Payment module returns to wrong URL

    seems that I have it working now with this code:

    if($_SESSION['languages_code']=='es')
    {
    $url_respuesta="http://www.mundounik.com/index.php?main_page=checkout_success&language=es";
    }

    else if ($_SESSION['languages_code']=='en')
    {
    $url_respuesta= "http://www.mundounik.com/index.php?main_page=checkout_success&language=en";
    }

    As you can see I just added the "&language=" in the end...now it picks the right language.

    Will do some more testing, but if I do not reply here anymore..this is my solution!

    Thanks!!
    Tienda Virtual de relojes innovadores / Online store for innovative watches:

    WWW.MUNDOUNIK.COM

  5. #5
    Join Date
    Aug 2009
    Posts
    2
    Plugin Contributions
    0

    Default Re: Pagosonline.net Payment module returns to wrong URL

    Quote Originally Posted by MUtester View Post
    seems that I have it working now with this code:

    if($_SESSION['languages_code']=='es')
    {
    $url_respuesta="http://www.mundounik.com/index.php?main_page=checkout_success&language=es";
    }

    else if ($_SESSION['languages_code']=='en')
    {
    $url_respuesta= "http://www.mundounik.com/index.php?main_page=checkout_success&language=en";
    }

    As you can see I just added the "&language=" in the end...now it picks the right language.

    Will do some more testing, but if I do not reply here anymore..this is my solution!

    Thanks!!
    Thanks to you for the answer.


 

 

Similar Threads

  1. PayPoint.net payment moudled returns session expired
    By davidb2002 in forum Addon Payment Modules
    Replies: 1
    Last Post: 10 Jan 2012, 11:41 AM
  2. Wrong payment module selected?
    By Didee in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 10 Oct 2010, 02:57 PM
  3. Eprocessingnetwork module returning to wrong SSL URL
    By skip6467 in forum Addon Payment Modules
    Replies: 6
    Last Post: 13 Aug 2010, 02:55 PM
  4. Authorize.net SIM module returns with "Your session has expired" and doesn't complete
    By rumoraz in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 24 Sep 2008, 10:16 PM
  5. K-NET Payment Module
    By qtiger in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 20 Nov 2007, 12:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg