Commit 4528a002 by yeran

feat: 新增扫呗支付参数

1 parent 558b75ba
{
"name": "ldy/payment",
"type": "library",
"version": "3.4.1",
"version": "3.4.2",
"description": "支付宝支付、微信支付、招商一网通支付、通联支付、米付支付、利楚扫呗、富友支付、联拓付、易生支付、银盛支付 php SDK。",
"keywords": ["alipay", "weixin", "支付宝支付", "微信支付","通联支付", "集成支付接口SDK", "招商一网通", "一网通", "利楚扫呗", "富友支付"],
"homepage": "",
......
......@@ -67,6 +67,15 @@ class LiteChargeData extends ChargeBaseData
if(isset($this->attach)){
$signData['attach'] = $this->attach;
}
if(!empty($this->goods_tag)){
$signData['goods_tag'] = $this->goods_tag;
}
if(!empty($this->goods_detail)){
$signData['goods_detail'] = $this->goods_detail;
}
if(!empty($this->food_order_type)){
$signData['food_order_type'] = $this->food_order_type;
}
// 移除数组中的空值
$this->retData = ArrayUtil::paraFilter($signData);
......
......@@ -105,11 +105,11 @@ class LTFNotify extends NotifyStrategy{
* 向客户端返回必要的数据
*
* @param array $data
* @return void
* @return array
*/
protected function getRetData(array $data){
// TODO: Implement getRetData() method.
$retData = [
return [
'return_code' => $data['code'],
'return_msg' => $data['msg'],
'out_trade_no' => $data['outTradeNo'],
......@@ -121,7 +121,6 @@ class LTFNotify extends NotifyStrategy{
'pay_time' => $data['payTime'],
'channel' => Config::LTF_CHARGE,
];
return $retData;
}
/**
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!