osCommerce / oscommerce2

osCommerce Online Merchant v2.x

Home Page:http://www.oscommerce.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bank : specific return payment for 2.4

oitsuki opened this issue · comments

My first approach was to change inside Apps :
It resolve the ?

$route = array_keys($_GET)

//add follow possbile but on specific request with ?
    public static function getRouteValue($route) {
      $query = $_GET;
// replace parameter(s)
      $query['?'] = '&';

// rebuild url
      $query_result = http_build_query($query);
      $query_result = str_replace('%3F', '&', $query_result);

      $split_parameters = explode('&', $query_result);

      for($i = 0; $i < count($split_parameters); $i++) {
        $final_split = explode('=', $split_parameters[$i]);
        $split_complete[$final_split[0]] = $final_split[1];
      }

      $result = $split_complete;

      return $result;
    }



    public static function getRouteDestination($route = null, $filter_vendor_app = null) {

      if (empty($route)) {
//        $route = array_keys($_GET);
        $route = array_keys(static::getRouteValue($_GET));
      }
commented

you need to make your OWN Return PaymentHook (aka IPN).
Forget 2.4 base............. it is not worked out enough to handle, COMMON situations.

commented

It is already stated that in 2.4
if (OSCOM::hasSitePage()) { if (OSCOM::isRPC() === false) { $page_file = OSCOM::getSitePageFile(); if (empty($page_file) || !is_file($page_file)) { $page_file = OSCOM::getConfig('dir_root') . 'includes/error_documents/404.php'; } if (OSCOM::useSiteTemplateWithPageFile()) { include($oscTemplate->getFile('template_top.php')); } include($page_file); if (OSCOM::useSiteTemplateWithPageFile()) { include($oscTemplate->getFile('template_bottom.php')); } } goto main_sub3; }

Is a DIRTY approach, ......... you should not COUNT on this code.
it is unfinished code.

commented

Wake UP!!!!!!!!!!!

@osc2nuke It's nice to criticize, it's even better to share, this space is made for that. Because I do not see much from you! At work guy.

commented

Read the forum, it is Haralds words.
He stated the code is unfinished , and it was necessary for the legacy modules.
You will not going to see any work from me here anyway.
I got notified by mail.
Going to turn that of now.

I know all of that,
You don't want to share the pb identified, it's your right, stop to be inside the team in this case. Also, you say : I am here for the Good of Osc, Bullshit.