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

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

@ -1,23 +1,25 @@
-----BEGIN CERTIFICATE-----
MIID0jCCArqgAwIBAgIJAP7Hut/02gF6MA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNV
BAYTAkdaMQswCQYDVQQIDAJHRDELMAkGA1UEBwwCR1oxDTALBgNVBAoMBEVQQVkx
EjAQBgNVBAsMCWVwYXlsaW5rczENMAsGA1UEAwwEeWlscjEjMCEGCSqGSIb3DQEJ
ARYUeWlsaXJlbkBlcGF5bGlua3MuY24wHhcNMjMwNDEzMDE1MDM5WhcNMzMwNDEw
MDE1MDM5WjB+MQswCQYDVQQGEwJHWjELMAkGA1UECAwCR0QxCzAJBgNVBAcMAkda
MQ0wCwYDVQQKDARFUEFZMRIwEAYDVQQLDAllcGF5bGlua3MxDTALBgNVBAMMBHlp
bHIxIzAhBgkqhkiG9w0BCQEWFHlpbGlyZW5AZXBheWxpbmtzLmNuMIIBIjANBgkq
hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1SL1lt41Phow3aZKQhB0zXNCX4DNqMkr
88/auTe/Lq7llBNYWtPJeABg6K+8JHAs6L90yzQN3mUU3k4gKFLCJPQEIlK9sPKA
AJQnDAs+3PUucgl1QCJnmeSRQKQCGfFjmsGOn+deyV/Lx4gHd3ytpErUDM1iEfen
YHQACuGlRK9G7w90V0UnF7YJca5FCB/wzL3QjqcQC6Z9e/bYXQES7fQH8vX+ajBr
gvi9nMVjFugsZk5sLkwGeYuY4/HMuUWQ8wW+Fvu8cJKtb48sqTl1eTPMhKPwgrgY
EB+RIBA4Ls/gF4/7/dQJA18xFS60Dbn7LS6IP6OTkO9BP4k+qi0kLQIDAQABo1Mw
UTAdBgNVHQ4EFgQUZlpKcM3zf5c8fed6tWnRVVQfC4AwHwYDVR0jBBgwFoAUZlpK
cM3zf5c8fed6tWnRVVQ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