Слияние кода завершено, страница обновится автоматически
<?php
namespace Payment\AliPayment\lib;
class AliPaymentTradeContentBuilder extends ContentBuilder
{
// 商户网站订单系统中唯一订单号,64个字符以内,只能包含字母、数字、下划线,
// 需保证商户系统端不能重复,建议通过数据库sequence生成,
private $outTradeNo;
// 卖家支付宝账号ID,用于支持一个签约账号下支持打款到不同的收款账号,(打款到sellerId对应的支付宝账号)
// 如果该字段为空,则默认为与支付宝签约的商户的PID,也就是appid对应的PID
private $sellerId;
// 订单总金额,整形,此处单位为元,精确到小数点后2位,不能超过1亿元
// 如果同时传入了【打折金额】,【不可打折金额】,【订单总金额】三者,则必须满足如下条件:【订单总金额】=【打折金额】+【不可打折金额】
private $totalAmount;
// 订单可打折金额,此处单位为元,精确到小数点后2位
// 可以配合商家平台配置折扣活动,如果订单部分商品参与打折,可以将部分商品总价填写至此字段,默认全部商品可打折
// 如果该值未传入,但传入了【订单总金额】,【不可打折金额】 则该值默认为【订单总金额】- 【不可打折金额】
private $discountableAmount;
// 订单不可打折金额,此处单位为元,精确到小数点后2位,可以配合商家平台配置折扣活动,如果酒水不参与打折,则将对应金额填写至此字段
// 如果该值未传入,但传入了【订单总金额】,【打折金额】,则该值默认为【订单总金额】-【打折金额】
private $undiscountableAmount;
//买家支付宝账号
private $buyerLogonId;
// 订单标题,粗略描述用户的支付目的。如“喜士多(浦东店)消费”
private $subject;
// 订单描述,可以对交易或商品进行一个详细地描述,比如填写"购买商品2件共15.00元"
private $body;
// 商品明细列表,需填写购买商品详细信息,
private $goodsDetailList = array();
// 商户操作员编号,添加此参数可以为商户操作员做销售统
private $operatorId;
// 商户门店编号,通过门店号和商家后台可以配置精准到门店的折扣信息,详询支付宝技术支持
private $storeId;
// 支付宝商家平台中配置的商户门店号,详询支付宝技术支持
private $alipayStoreId;
// 商户机具终端编号,当以机具方式接入支付宝时必传,详询支付宝技术支持
private $terminalId;
// 业务扩展参数,目前可添加由支付宝分配的系统商编号(通过setSysServiceProviderId方法),详情请咨询支付宝技术支持
private $extendParams = array();
// (推荐使用,相对时间) 支付超时时间,5m 5分钟
private $timeExpress;
private $bizContent = NULL;
private $bizParas = array();
// 退款金额,该金额必须小于等于订单的支付金额,此处单位为元,精确到小数点后2位
private $refundAmount;
// (可选,需要支持重复退货时必填) 商户退款请求号,相同支付宝交易号下的不同退款请求号对应同一笔交易的不同退款申请,
// 对于相同支付宝交易号下多笔相同商户退款请求号的退款交易,支付宝只会进行一次退款
private $outRequestNo;
// (必填) 退款原因,可以说明用户退款原因,方便为商家后台提供统计
private $refundReason;
public function getOutTradeNo()
{
return $this->outTradeNo;
}
public function getSellerId()
{
return $this->sellerId;
}
public function getDiscountableAmount()
{
return $this->discountableAmount;
}
public function getUndiscountableAmount()
{
return $this->undiscountableAmount;
}
public function getBuyerLogonId()
{
return $this->buyerLogonId;
}
public function getSubject()
{
return $this->subject;
}
public function getBody()
{
return $this->body;
}
public function getOperatorId()
{
return $this->operatorId;
}
public function getStoreId()
{
return $this->storeId;
}
public function getTerminalId()
{
return $this->terminalId;
}
public function getTimeExpress()
{
return $this->timeExpress;
}
public function getAlipayStoreId()
{
return $this->alipayStoreId;
}
public function getExtendParams()
{
return $this->extendParams;
}
public function getGoodsDetailList()
{
return $this->goodsDetailList;
}
public function getTotalAmount()
{
return $this->totalAmount;
}
public function setSellerId($sellerId)
{
$this->sellerId = $sellerId;
$this->bizParas['seller_id'] = $sellerId;
}
public function setOutTradeNo($outTradeNo)
{
$this->outTradeNo = $outTradeNo;
$this->bizParas['out_trade_no'] = $outTradeNo;
}
public function setDiscountableAmount($discountableAmount)
{
$this->discountableAmount = $discountableAmount;
$this->bizParas['discountable_amount'] = $discountableAmount;
}
public function setTotalAmount($totalAmount)
{
$this->totalAmount = $totalAmount;
$this->bizParas['total_amount'] = $totalAmount;
}
public function setUndiscountableAmount($undiscountableAmount)
{
$this->undiscountableAmount = $undiscountableAmount;
$this->bizParas['undiscountable_amount'] = $undiscountableAmount;
}
public function setBuyerLogonId($buyerLogonId)
{
$this->buyerLogonId = $buyerLogonId;
$this->bizParas['buyer_logon_id'] = $buyerLogonId;
}
public function setSubject($subject)
{
$this->subject = $subject;
$this->bizParas['subject'] = $subject;
}
public function setBody($body)
{
$this->body = $body;
$this->bizParas['body'] = $body;
}
public function setOperatorId($operatorId)
{
$this->operatorId = $operatorId;
$this->bizParas['operator_id'] = $operatorId;
}
public function setStoreId($storeId)
{
$this->storeId = $storeId;
$this->bizParas['store_id'] = $storeId;
}
public function setTerminalId($terminalId)
{
$this->terminalId = $terminalId;
$this->bizParas['terminal_id'] = $terminalId;
}
public function setTimeExpress($timeExpress)
{
$this->timeExpress = $timeExpress;
$this->bizParas['timeout_express'] = $timeExpress;
}
public function setAlipayStoreId($alipayStoreId)
{
$this->alipayStoreId = $alipayStoreId;
$this->bizParas['alipay_store_id'] = $alipayStoreId;
}
public function setExtendParams($extendParams)
{
$this->extendParams = $extendParams;
$this->bizParas['extend_params'] = $extendParams;
}
public function setGoodsDetailList($goodsDetailList)
{
$this->goodsDetailList = $goodsDetailList;
$this->bizParas['goods_detail'] = $goodsDetailList;
}
public function setRefundAmount($refundAmount): void
{
$this->refundAmount = $refundAmount;
$this->bizParas['refund_amount'] = $refundAmount;
}
public function setOutRequestNo($outRequestNo): void
{
$this->outRequestNo = $outRequestNo;
$this->bizParas['out_request_no'] = $outRequestNo;
}
public function setRefundReason($refundReason): void
{
$this->refundReason = $refundReason;
$this->bizParas['refund_reason'] = $refundReason;
}
public function getBizContent()
{
if(!empty($this->bizParas)){
$this->bizContent = json_encode($this->bizParas,JSON_UNESCAPED_UNICODE);
}
return $this->bizContent;
}
}
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Комментарий ( 0 )