function callGAA($order_id)
{
    $dataGAA = _recollect_data($order_id);
    if ($dataGAA) {
        $logger = $dataGAA['logger'];
        $connector = new TodoPago\Sdk($dataGAA['authorization'], $dataGAA['mode']);
        $logger->info("params GAA: " . json_encode($dataGAA['params']));
        $rta2 = $connector->getAuthorizeAnswer($dataGAA['params']);
        $logger->info("response GAA: " . json_encode($rta2));
        return array('rta' => $rta2, 'logger' => $logger, 'optionsGAA' => $dataGAA['params']);
    }
    return false;
}
function callGAA($order)
{
    $dataGAA = _recollect_data($order);
    if (empty($dataGAA)) {
        return false;
    }
    $logger = $dataGAA['logger'];
    $connector = $dataGAA['connector'];
    $logger->info("params GAA: " . json_encode($dataGAA['optionsGAA']));
    try {
        $rta2 = $connector->getAuthorizeAnswer($dataGAA['optionsGAA']);
    } catch (Exception $e) {
        $logger->error(json_encode($e));
        showError();
    }
    $logger->info("response GAA: " . json_encode($rta2));
    return array('rta' => $rta2, 'logger' => $logger, 'config' => $dataGAA['config'], 'optionsGAA' => $dataGAA['optionsGAA']);
}