You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
1.7 KiB
65 lines
1.7 KiB
<?php
|
|
/* *
|
|
* 功能:支付宝手机网站alipay.trade.fastpay.refund.query (统一收单交易退款查询)业务参数封装
|
|
* 版本:2.0
|
|
* 修改日期:2016-11-01
|
|
* 说明:
|
|
* 以下代码只是为了方便商户测试而提供的样例代码,商户可以根据自己网站的需要,按照技术文档编写,并非一定要使用该代码。
|
|
*/
|
|
|
|
|
|
class AlipayTradeFastpayRefundQueryContentBuilder
|
|
{
|
|
|
|
// 商户订单号.
|
|
private $outTradeNo;
|
|
// 支付宝交易号
|
|
private $tradeNo;
|
|
// 请求退款接口时,传入的退款请求号,如果在退款请求时未传入,则该值为创建交易时的外部交易号
|
|
private $outRequestNo;
|
|
|
|
private $bizContentarr = array();
|
|
|
|
private $bizContent = NULL;
|
|
|
|
public function getBizContent()
|
|
{
|
|
if(!empty($this->bizContentarr)){
|
|
$this->bizContent = json_encode($this->bizContentarr,JSON_UNESCAPED_UNICODE);
|
|
}
|
|
return $this->bizContent;
|
|
}
|
|
|
|
public function getTradeNo()
|
|
{
|
|
return $this->tradeNo;
|
|
}
|
|
|
|
public function setTradeNo($tradeNo)
|
|
{
|
|
$this->tradeNo = $tradeNo;
|
|
$this->bizContentarr['trade_no'] = $tradeNo;
|
|
}
|
|
|
|
public function getOutTradeNo()
|
|
{
|
|
return $this->outTradeNo;
|
|
}
|
|
|
|
public function setOutTradeNo($outTradeNo)
|
|
{
|
|
$this->outTradeNo = $outTradeNo;
|
|
$this->bizContentarr['out_trade_no'] = $outTradeNo;
|
|
}
|
|
public function getOutRequestNo()
|
|
{
|
|
return $this->outRequestNo;
|
|
}
|
|
public function setOutRequestNo($outRequestNo)
|
|
{
|
|
$this->outRequestNo = $outRequestNo;
|
|
$this->bizContentarr['out_request_no'] = $outRequestNo;
|
|
}
|
|
}
|
|
|
|
?>
|