master
elf 2 years ago
parent 34869fb0d6
commit 904ae804db

@ -12,10 +12,10 @@ class Config
private static $params = [
'baseUrl' => 'https://www.sumapay.com',
'merchantCode' => '4610000027',
'secretKey' => 'yT6tyOw0R0QqCccnChQyd4YJKKkM5czM',
// 'merchantCode' => '4610000028',
// 'secretKey' => 'K1qIjwsTlx3DrF5WERxTBXU4HJ6439tP',
// 'merchantCode' => '4610000027',
// 'secretKey' => 'yT6tyOw0R0QqCccnChQyd4YJKKkM5czM',
'merchantCode' => '4610000028',
'secretKey' => 'K1qIjwsTlx3DrF5WERxTBXU4HJ6439tP',
'totalBizType' => 'BIZ01104',
];

@ -42,9 +42,9 @@ class Request
'merchantCode' => $this->merchantCode,
'totalBizType' => $this->totalBizType,
], $this->params, $this->getExtraData());
/* foreach ($params as $key => $value) {
foreach ($params as $key => $value) {
$params[$key] = Encoding::convert($value, 'GBK');
} */
}
$params[Sign::SIGN_KEY] = Sign::generate($params, $this->signFields, $this->secretKey);
return $params;
}

Loading…
Cancel
Save