| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <title>支付跳转中...</title>
- </head>
- <?php
- include("../../config/conn.php");
- include("../../config/function.php");
- $sj=date("Y-m-d H:i:s");
- sesCheck();
- require_once("yun.config.php");
- require_once("lib/yun_md5.function.php");
- $userid=returnuserid($_SESSION["SHOPUSER"]);
- $sj=date("Y-m-d H:i:s");
- $bh=time();
- $uip=$_SERVER["REMOTE_ADDR"];
- $money1=sqlzhuru($_POST[t1]);
- $ddbh=time().$userid.rnd_num(1000);
- intotable("yjcode_dingdang","bh,ddbh,userid,sj,uip,money1,ddzt,alipayzt,bz,ifok","'".$bh."','".$ddbh."',".$userid.",'".$sj."','".$uip."',".$money1.",'wait','','yunpay',0");
- /**************************请求参数**************************/
-
- //商户订单号
- $out_trade_no =$ddbh;//商户网站订单系统中唯一订单号,必填
- //订单名称
- $subject = weburl;//必填
- //付款金额
- $total_fee = $money1;//必填 需为整数
- //订单描述
- $body = $subject;
-
-
- //服务器异步通知页面路径
- $nourl = weburl."user/yunpay/no_url.php";
- //需http://格式的完整路径,不能加?id=123这类自定义参数
- //页面跳转同步通知页面路径
- $reurl = weburl."user/paylog.php";
- //需http://格式的完整路径,不能加?id=123这类自定义参数,不能写成http://localhost/
-
- //商品展示地址
- $orurl = "";
- //需http://格式的完整路径,不能加?id=123这类自定义参数,如原网站带有 参数请彩用伪静态或短网址解决
- //商品形象图片地址
- $orimg = "";
- //需http://格式的完整路径,必须为图片完整地址
- /************************************************************/
- //构造要请求的参数数组,无需改动
- $parameter = array(
- "partner" => trim($yun_config['partner']),
- "seller_email" => $seller_email,
- "out_trade_no" => $out_trade_no,
- "subject" => $subject,
- "total_fee" => $total_fee,
- "body" => $body,
- "nourl" => $nourl,
- "reurl" => $reurl,
- "orurl" => $orurl,
- "orimg" => $orimg
- );
- //建立请求
- $html_text = i2e($parameter, "支付进行中...");
- echo $html_text;
- ?>
- </body>
- </html>
|