mirror of
https://gitee.com/liuxioabin/fengketrade.git
synced 2026-04-17 21:03:17 +08:00
1
This commit is contained in:
parent
77278dc055
commit
f0b937360d
@ -194,13 +194,14 @@ class CcbPaymentService
|
||||
$macParams['MINPOINTLIMIT'] = $this->config['min_point_limit'];
|
||||
}
|
||||
|
||||
// 特殊字段(中石化专用,第33-34位)
|
||||
if (!empty($this->config['identity_code'])) {
|
||||
$macParams['IDENTITYCODE'] = $this->config['identity_code'];
|
||||
}
|
||||
if (!empty($this->config['notify_url'])) {
|
||||
$macParams['NOTIFY_URL'] = $this->config['notify_url'];
|
||||
}
|
||||
// ⚠️ 特殊字段(仅中石化服务方使用,其他服务方禁止添加,否则MAC验证失败)
|
||||
// Java代码中这两个字段已被注释,说明不参与正常流程的MAC签名
|
||||
// if (!empty($this->config['identity_code'])) {
|
||||
// $macParams['IDENTITYCODE'] = $this->config['identity_code'];
|
||||
// }
|
||||
// if (!empty($this->config['notify_url'])) {
|
||||
// $macParams['NOTIFY_URL'] = $this->config['notify_url'];
|
||||
// }
|
||||
|
||||
// 数字人民币商户类型(第35-38位)
|
||||
if (!empty($this->config['dcep_mct_type'])) {
|
||||
@ -336,8 +337,8 @@ class CcbPaymentService
|
||||
'status' => true,
|
||||
'message' => '支付串生成成功',
|
||||
'data' => [
|
||||
// 'payment_string' => $finalPaymentString,
|
||||
'payment_string' => 'MERCHANTID=105003953998037&POSID=068295530&BRANCHID=340650000&ORDERID=PAY20251027163247893442&USER_ORDERID=202504324734011387001000&PAYMENT=2999.00&CURCODE=01&TXCODE=520100&REMARK1=&REMARK2=YS44000009001853&TYPE=1&GATEWAY=0&CLIENTIP=®INFO=&PROINFO=Apple%u0020Watch%u0020Series%u00207%u0020%u667A%u80FD%u624B%u8868GPS%u6B3E41%u0020%u6BEB%u7C73%u661F%u5149%u8272%u94DD%u91D1%u5C5E%u8868%u58F3%u661F%u5149%u8272%u8FD0%u52A8%u578B%u8868%u5E26&REFERER=&THIRDAPPINFO=comccbpay1234567890cloudmerchant&TIMEOUT=20251027172350&PLATFORMPUB=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC6yZj5rUHz+plEbTMSxF6iRy5XTd82LpKGkcRtJcNiHXAvOh/QvW6xc+GJSfvfM9pnRCyWkFrvFViOGnLUrjyoB0wa/TEqWootEEKXSDacFyQ/QIJSK0+zMYTC2Md6gGA4YylJQuYZ1lWDoOLBt9pP93Qnm0R2PEQ5a11HxwdvlQIDAQAB',
|
||||
'payment_string' => $finalPaymentString,
|
||||
// 'payment_string' => 'MERCHANTID=105003953998037&POSID=068295530&BRANCHID=340650000&ORDERID=PAY20251027163247893442&USER_ORDERID=202504324734011387001000&PAYMENT=2999.00&CURCODE=01&TXCODE=520100&REMARK1=&REMARK2=YS44000009001853&TYPE=1&GATEWAY=0&CLIENTIP=®INFO=&PROINFO=Apple%u0020Watch%u0020Series%u00207%u0020%u667A%u80FD%u624B%u8868GPS%u6B3E41%u0020%u6BEB%u7C73%u661F%u5149%u8272%u94DD%u91D1%u5C5E%u8868%u58F3%u661F%u5149%u8272%u8FD0%u52A8%u578B%u8868%u5E26&REFERER=&THIRDAPPINFO=comccbpay1234567890cloudmerchant&TIMEOUT=20251027172350&PLATFORMPUB=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC6yZj5rUHz+plEbTMSxF6iRy5XTd82LpKGkcRtJcNiHXAvOh/QvW6xc+GJSfvfM9pnRCyWkFrvFViOGnLUrjyoB0wa/TEqWootEEKXSDacFyQ/QIJSK0+zMYTC2Md6gGA4YylJQuYZ1lWDoOLBt9pP93Qnm0R2PEQ5a11HxwdvlQIDAQAB',
|
||||
'mac' => $mac,
|
||||
'order_sn' => $order['order_sn'],
|
||||
'pay_flow_id' => $payFlowId,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user