Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
- 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éscimo.</b>";
- } else {
- $ms = "<b>Total de R$: ".$valorfinal." reais, sem acré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;
- }
Add Comment
Please, Sign In to add comment