Jump to content


Photo

post


  • Please log in to reply
No replies to this topic

#1 fazzfarrell

fazzfarrell
  • Members
  • PipPipPip
  • Advanced Member
  • 154 posts

Posted 17 October 2006 - 03:51 PM

I have a code that submits to paypal
<?php
if (isset($HTTP_POST_VARS["imxPPForm1"])) {
	$IMX_PP = new PayPalSIP();
	$IMX_PP->business = "anyone@paypal.com";
	$IMX_PP->image_url = "logo.gif";
	$IMX_PP->item_number = $HTTP_SESSION_VARS["icJag"]->col("OrderID");
	$IMX_PP->item_name = "Shopping Cart";
	$IMX_PP->currency_code = $row_rsCurrency['CurrRate'];
	$IMX_PP->quantity = "1";
                $IMX_PP->winName = "paypal";
	$IMX_PP->toolbar="no";
	$IMX_PP->location="no";
	$IMX_PP->status="no";
	$IMX_PP->menubar="yes";
	$IMX_PP->scrollbars="yes";
	$IMX_PP->resizable="no";
	$IMX_PP->width="700";
	$IMX_PP->height="500";
	$IMX_PP->amount = $HTTP_SESSION_VARS["icJag"]->col("Total");
	$IMX_PP->return = "success.php";
	$IMX_PP->cancel_return = "cancel.php";
	$IMX_PP->create();
	$url = $IMX_PP->_url;
header("Location: $url");
}
?>
This submit one total to paypal
$HTTP_SESSION_VARS["icJag"]->col("Total");

But I want my toal to come from here
<?php
             $number1 = $HTTP_SESSION_VARS["icJag"]->col("Total");
			 $number2 = $row_rsCurrency['Rate'];
             $newnumber = ($number1 * $number2);
			 echo $english_format_number = number_format($newnumber, 2, '.', '');
			 $totalCart = $english_format_number = number_format($newnumber, 2, '.', '');
?>

I presume I need it to be '$totalCart' as I can echo that on the page and get a result, but ehat do I need  to do to get it work in my script?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users