建行聚合码收款
* @param array $params
* @return bool|mixed
*/
public function qrpayCcbUnion($params = [])
{
//具体参数
$data = [
'funcCode' => 'T001',
'ccbParam' => [
'MERCHANTID' => $this->merchant_id,
'POSID' => $this->pos_id,
'BRANCHID' => $this->branch_id,
'ORDERID' => $params['order_no'],
'PAYMENT' => trim($params['amount']),
'CURCODE' => '01',
'REMARK1' => '',
'REMARK2' => '',
'TXCODE' => '520100',
'MAC' => '',
]
];
//签名
$data['ccbParam']['MAC'] = $this->getMacSign($data['ccbParam'],$this->security_code);
//公共参数
$data = $this->publicParams($data);
//组装数据
$data = $this->getRequestData($data);
//发送数据
$result = $this->send($data);
if ($result === false) {
return false;
}
//处理结果
$result = $this->parseResult($result);
if (!$result) {
return false;
}
//建行聚合码支付,不需要返回参数
return true;
}
/*********************** 基础功能函数 ***************************/
/**
* 获取签名
* @param $data
建行聚合码收款码怎么申请?申请建行聚合码收款码非常简单,只需要登录建行手机银行,在首页“聚合码”栏中点击“申请收款码”,填写申请信息,即可完成申请。
建行聚合码收款有手续费吗?没有手续费。建行聚合码收款是建行开展的新型支付方式,收款者无需承担额外的费用。