Exemplo n.º 1
0
		        $period = $_REQUEST["period"];
		        $phdFlag=$_REQUEST["phdFlag"];
		        $notifyType=$_REQUEST["notifyType"];
		        $merURL=$_REQUEST["merURL"];
		        $goodsURL=$_REQUEST["goodsURL"];
		        $jumpSeconds=$_REQUEST["jumpSeconds"];
		        $payBatchNo=$_REQUEST["payBatchNo"];
		        $proxyMerName=$_REQUEST["proxyMerName"];
		        $proxyMerType=$_REQUEST["proxyMerType"];
		        $proxyMerCredentials=$_REQUEST["proxyMerCredentials"];
		        $netType=$_REQUEST["netType"];
		        $source="";
            
       			$tran = new java("com.bocom.netpay.b2cAPI.PreOrder",$orderid,$orderDate,$orderTime,$amount,$curType,$orderContent,$orderMono,$phone,$period,$phdFlag,$notifyType,$merURL,$goodsURL,$jumpSeconds,$payBatchNo,$proxyMerName,$proxyMerType,$proxyMerCredentials,$netType);
        	
            $rep = $client->createPreOrder($tran); //结算帐户查询
						
						
            if (java_is_null($rep)) {
                $err=$client->getLastErr();
                //为正确显示中文对返回java变量进行转换,如果用java_set_file_encoding进行过转换则不用再次转换
                //$err = java_values($err->getBytes("GBK")); 
                $err=java_values($err);
                print "交易错误信息:" . $err . "<br>";
                exit(1);
            }

            $code=$rep->getRetCode();
            $msg=$rep->getErrorMessage();

            if (!java_is_null($msg)) {