<section class="content-header"> <h1> 支付成功 <small>Pay Successed</small> </h1> </section> <!-- Main content --> <section class="content"> <div class="row"> <!-- left column --> <div class="col-md-6"> <?php if ($_GET['out_trade_no'] != null) { $orderinfo = new \Ss\Product\OrderInfo($_GET['out_trade_no']); $orderinfo->UpdateStatus(1); $orders = $orderinfo->GetOrder(); foreach ($orders as $o) { ?> <div class="box box-primary"> <div class="box-body"> <form action="_pay.php" method="post" name="from_pay" target="_blank"> <?php $p = new \Ss\Product\ProductInfo($o['p_id']); ?> <p>订单编号:<input type="text" name="o_id" value="<?php echo $o['id']; ?> " style="border:none;" readonly="true"></p> <p>套餐名称:<input type="text" name="o_name" value="<?php
<?php require_once '../lib/config.php'; $orderinfo = new \Ss\Product\OrderInfo($_POST['o_id']); require_once "../lib/alipay.config.php"; require_once "../lib/pay/alipay_submit.class.php"; /**************************请求参数**************************/ //支付类型 $payment_type = "1"; //必填,不能修改 //服务器异步通知页面路径 $notify_url = $alipay_config['site'] . "/user/pay_success.php"; //需http://格式的完整路径,不能加?id=123这类自定义参数 //页面跳转同步通知页面路径 $return_url = $alipay_config['site'] . "/user/pay_success.php"; //需http://格式的完整路径,不能加?id=123这类自定义参数,不能写成http://localhost/ //商户订单号 $o = $orderinfo->OrderArray(); $out_trade_no = $o['id']; //商户网站订单系统中唯一订单号,必填 //订单名称 $subject = $o['name']; //必填 //付款金额 if ($debug) { $total_fee = 0.01; } else { $total_fee = $o['total']; } //必填 //订单描述