Guest User

Untitled

a guest
Apr 19th, 2018
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. 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
  2.  
  3. Notice: Undefined variable: id in /home/jpminato/www/modules/checkout/pagseguro/module.pagseguro.php on line 204
  4.  
  5. Notice: Undefined variable: id in /home/jpminato/www/modules/checkout/pagseguro/module.pagseguro.php on line 209
  6.  
  7. Notice: Undefined variable: id in /home/jpminato/www/modules/checkout/pagseguro/module.pagseguro.php on line 209
  8.  
  9. function getofflinepaymentmessage($id){
  10.  
  11.  
  12. // Load the pending order
  13. $order = LoadPendingOrderByToken($_COOKIE['SHOP_ORDER_TOKEN']);
  14.  
  15. // Fetch the customer details
  16. $query = sprintf("SELECT * FROM [|PREFIX|]customers WHERE customerid='%s'", $GLOBALS['ISC_CLASS_DB']->Quote($order['ordcustid']));
  17. $result = $GLOBALS['ISC_CLASS_DB']->Query($query);
  18. $customer = $GLOBALS['ISC_CLASS_DB']->Fetch($result);
  19.  
  20.  
  21.  
  22. $desc1 = $this->GetValue("acrecimo");
  23.  
  24. $total = $order['ordgatewayamount'];
  25. $c = ($total/100)*$desc1;
  26. $valorpg = str_replace(",", ".",$total+$c);
  27. $valorfinal = number_format($valorpg, 2, '.', '');
  28.  
  29.  
  30.  
  31. if($desc1>"0"){
  32. $ms = "<b>Total de R$: ".$valorfinal." reais, com ".$desc1."% de acr&eacute;scimo.</b>";
  33. } else {
  34. $ms = "<b>Total de R$: ".$valorfinal." reais, sem acr&eacute;scimo.</b>";
  35. }
  36.  
  37.  
  38. $billhtml = "
  39. <div><p>Pagamento Online PagSeguro</p>
  40.  
  41. ".$ms."
  42. </br></br></br>
  43. <a href="javascript:window.open('".$GLOBALS['ShopPath']."/modules/checkout/pagseguro/repagar.php?pedido=".$id."','popup','width=800,height=800,scrollbars=yes');void(0);">
  44. <img src='".$GLOBALS['ShopPath']."/modules/checkout/pagseguro/images/final3.gif' border='0'></a>
  45. </div></br></br>
  46.  
  47. <b>Link Direto:</b></br>
  48. <a href='".$GLOBALS['ShopPath']."/modules/checkout/pagseguro/repagar.php?pedido=".$id."' target='_blank'>".$GLOBALS['ShopPath']."/modules/checkout/pagseguro/repagar.php?pedido=".$id."</a><br>
  49. ".$this->GetValue("htmlpagseguro")."
  50.  
  51. ";
  52.  
  53. return $billhtml;
  54.  
  55. }
Add Comment
Please, Sign In to add comment