Error in the order_status of the Pagseguro getofflinepaymentmessage ()

0

I'm having a problem with my Pagseguro script when I see the Order Status.

You are returning these errors

Warning: Missing argument 1 for CHECKOUT_PAGSEGURO::getofflinepaymentmessage(), called in /home/jpminato/www/includes/classes/class.account.php on line 1143 and defined in /home/jpminato/www/modules/checkout/pagseguro/module.pagseguro.php on line 170

Notice: Undefined variable: id in /home/jpminato/www/modules/checkout/pagseguro/module.pagseguro.php on line 204

Notice: Undefined variable: id in /home/jpminato/www/modules/checkout/pagseguro/module.pagseguro.php on line 209

Notice: Undefined variable: id in /home/jpminato/www/modules/checkout/pagseguro/module.pagseguro.php on line 209

I would like to know how to solve this error that is returning?

function getofflinepaymentmessage($id){


    // Load the pending order
            $order = LoadPendingOrderByToken($_COOKIE['SHOP_ORDER_TOKEN']);

            // Fetch the customer details
            $query = sprintf("SELECT * FROM [|PREFIX|]customers WHERE customerid='%s'", $GLOBALS['ISC_CLASS_DB']->Quote($order['ordcustid']));
            $result = $GLOBALS['ISC_CLASS_DB']->Query($query);
            $customer = $GLOBALS['ISC_CLASS_DB']->Fetch($result);



$desc1 = $this->GetValue("acrecimo");

    $total = $order['ordgatewayamount'];
    $c = ($total/100)*$desc1;
    $valorpg = str_replace(",", ".",$total+$c);
    $valorfinal = number_format($valorpg, 2, '.', '');



if($desc1>"0"){
$ms = "<b>Total de R$: ".$valorfinal." reais,  com ".$desc1."% de acr&eacute;scimo.</b>";
} else {
$ms = "<b>Total de R$: ".$valorfinal." reais, sem acr&eacute;scimo.</b>";
}


$billhtml = "
<div><p>Pagamento Online PagSeguro</p>

".$ms."
</br></br></br>
<a href=\"javascript:window.open('".$GLOBALS['ShopPath']."/modules/checkout/pagseguro/repagar.php?pedido=".$id."','popup','width=800,height=800,scrollbars=yes');void(0);\">
<img src='".$GLOBALS['ShopPath']."/modules/checkout/pagseguro/images/final3.gif' border='0'></a>
</div></br></br>

<b>Link Direto:</b></br>
<a href='".$GLOBALS['ShopPath']."/modules/checkout/pagseguro/repagar.php?pedido=".$id."' target='_blank'>".$GLOBALS['ShopPath']."/modules/checkout/pagseguro/repagar.php?pedido=".$id."</a><br>
".$this->GetValue("htmlpagseguro")."

";

return $billhtml;

}
    
asked by anonymous 19.04.2018 / 13:39

0 answers