function second_step_todopago() { global $todopagoTransaccion; $order_id = isset($_GET['Order']) && is_numeric($_GET['Order']) ? $_GET['Order'] : null; $todopagoTransaccion = new TodopagoTransaccion(); $response = callGAA($order_id); if ($response) { take_action($response, $order_id); } }
function second_step_todopago($order) { global $todopagoTransaccion; $todopagoTransaccion = new TodopagoTransaccion(); $response = callGAA($order); if ($response) { take_action($response); } else { showError(); } }