efps-version
ljl 1 year ago
parent 515771739f
commit 06a838fbf1

@ -87,7 +87,7 @@ class Api extends AbstractApi
public static function bindCard($params) public static function bindCard($params)
{ {
$memberId = self::getConfig('customerCode'); $memberId = $params['memberId'] ?? '';
$mchtOrderNo = $params['mchtOrderNo'] ?? StringHelper::generateOrderNo(); $mchtOrderNo = $params['mchtOrderNo'] ?? StringHelper::generateOrderNo();
$userName = $params['userName'] ?? ''; $userName = $params['userName'] ?? '';
$phoneNum = $params['phoneNum'] ?? ''; $phoneNum = $params['phoneNum'] ?? '';
@ -103,6 +103,7 @@ class Api extends AbstractApi
'customerCode' => self::getConfig('customerCode'), 'customerCode' => self::getConfig('customerCode'),
'mchtOrderNo' => $mchtOrderNo, 'mchtOrderNo' => $mchtOrderNo,
'memberId' => $memberId, 'memberId' => $memberId,
'isSendIssuer' => true,
'userName' => Signer::publicEncrypt($userName), 'userName' => Signer::publicEncrypt($userName),
'phoneNum' => Signer::publicEncrypt($phoneNum), 'phoneNum' => Signer::publicEncrypt($phoneNum),
'bankCardNo' => Signer::publicEncrypt($bankCardNo), 'bankCardNo' => Signer::publicEncrypt($bankCardNo),
@ -111,19 +112,6 @@ class Api extends AbstractApi
'certificatesNo' => Signer::publicEncrypt($certificatesNo), 'certificatesNo' => Signer::publicEncrypt($certificatesNo),
'nonceStr' => StringHelper::getRandomString(32), 'nonceStr' => StringHelper::getRandomString(32),
]; ];
/*$params = [
'version' => '2.0',
'customerCode' => self::getConfig('customerCode'),
'mchtOrderNo' => $mchtOrderNo,
'memberId' => $memberId,
'userName' => $userName,
'phoneNum' => $phoneNum,
'bankCardNo' => $bankCardNo,
'bankCardType' => $bankCardType,
'certificatesType' => '01',
'certificatesNo' => $certificatesNo,
'nonceStr' => StringHelper::getRandomString(32),
];*/
if ($bankCardType == 'credit') { if ($bankCardType == 'credit') {
$params['expired'] = Signer::publicEncrypt($expired); $params['expired'] = Signer::publicEncrypt($expired);
$params['cvn'] = Signer::publicEncrypt($cvn); $params['cvn'] = Signer::publicEncrypt($cvn);
@ -139,7 +127,7 @@ class Api extends AbstractApi
$memberId = $params['memberId'] ?? ''; $memberId = $params['memberId'] ?? '';
$uri = '/api/txs/protocol/bindCardConfirm'; $uri = '/api/txs/protocol/bindCardConfirm';
$params = [ $params = [
'version' => '3.0', 'version' => '2.0',
'customerCode' => self::getConfig('customerCode'), 'customerCode' => self::getConfig('customerCode'),
'smsNo' => $smsNo, 'smsNo' => $smsNo,
'memberId' => $memberId, 'memberId' => $memberId,
@ -166,7 +154,7 @@ class Api extends AbstractApi
$uri = '/api/txs/pay/CertifiedPayment'; $uri = '/api/txs/pay/CertifiedPayment';
$params = [ $params = [
'version' => '3.0', 'version' => '2.0',
'customerCode' => self::getConfig('customerCode'), 'customerCode' => self::getConfig('customerCode'),
'outTradeNo' => $outTradeNo, 'outTradeNo' => $outTradeNo,
'userName' => Signer::publicEncrypt($userName), 'userName' => Signer::publicEncrypt($userName),
@ -189,7 +177,7 @@ class Api extends AbstractApi
$memberId = $params['memberId'] ?? ''; $memberId = $params['memberId'] ?? '';
$uri = '/api/txs/protocol/unBindCard'; $uri = '/api/txs/protocol/unBindCard';
$params = [ $params = [
'version' => '3.0', 'version' => '2.0',
'customerCode' => self::getConfig('customerCode'), 'customerCode' => self::getConfig('customerCode'),
'protocol' => $protocol, 'protocol' => $protocol,
'memberId' => $memberId, 'memberId' => $memberId,

@ -1,23 +1,25 @@
-----BEGIN CERTIFICATE----- -----BEGIN CERTIFICATE-----
MIID0jCCArqgAwIBAgIJAP7Hut/02gF6MA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNV MIIEIjCCAwqgAwIBAgIUJciVbai01yHdyTuMJ3UAOf6uWPQwDQYJKoZIhvcNAQEL
BAYTAkdaMQswCQYDVQQIDAJHRDELMAkGA1UEBwwCR1oxDTALBgNVBAoMBEVQQVkx BQAwgZYxCzAJBgNVBAYTAkNOMTkwNwYDVQQKDDDljJfkuqzlpKnlqIHor5rkv6Hn
EjAQBgNVBAsMC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