www.gusucode.com > 08CMS空白站群系统 3.3 繁体 UTF-8 > upload/payonline/alipay/send.php

    <?php
!defined('M_COM') && exit('No Permission');
require_once M_ROOT.'/payonline/'.$paynew['poid'].'/service.php';
require_once M_ROOT.'/payonline/'.$paynew['poid'].'/config.php';
$parameter = array(
	'service' => 'create_digital_goods_trade_p',	//交易类型,必填实物交易=trade_create_by_buyer(需要填写物流) 虚拟物品交易=create_digital_goods_trade_p
	'partner' => $partner,					//合作商户号
	'return_url' => $return_url,				//同步返回
	'notify_url' => $notify_url,				//异步返回
	'_input_charset' => $_input_charset,	//字符集,默认为GBK
	'subject' => lang('currency saving'),	//商品名称,必填
	'body' => lang('currency saving'),      //商品描述,必填
	'out_trade_no' => $paynew['ordersn'],    //商品外部交易号,必填,每次测试都须修改
	'logistics_fee' => '',//物流配送费用
	'logistics_payment' => '', // 物流配送费用付款方式:SELLER_PAY(卖家支付)、BUYER_PAY(买家支付)、BUYER_PAY_AFTER_RECEIVE(货到付款)
	'logistics_type'=> '',	// 物流配送方式:POST(平邮)、EMS(EMS)、EXPRESS(其他快递)
	'price' => $paynew['total'],							//商品单价,必填
	'payment_type'=>'1',						// 默认为1,不需要修改
	'quantity' => '1',							//商品数量,必填
	'show_url' => $show_url,					//商品相关网站
	'seller_email' => $seller_email             //卖家邮箱,必填
);
//对URL组合
$alipay = new alipay_service($parameter,$security_code,$sign_type);
$send_link = $alipay->create_url();
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?=$mcharset?>">
<title><?=lang('jumping')?><?=$payonline['cname']?><?=lang('pay interface')?></title>
<meta http-equiv="refresh" content="0;URL=<?=$send_url?>" method="post">
</head>
<body>
</body>
</html>
<?
mexit();
?>