pay debug

This commit is contained in:
devil_gong 2019-07-31 20:02:20 +08:00
parent fddec399ae
commit a21d62015e

View File

@ -239,7 +239,7 @@ class PayEase
$public_key = ROOT.'rsakeys/test.cer'; $public_key = ROOT.'rsakeys/test.cer';
$params['encryptKey'] = isset($_SERVER['HTTP_ENCRYPTKEY']) ? $_SERVER['HTTP_ENCRYPTKEY'] : ''; $params['encryptKey'] = isset($_SERVER['HTTP_ENCRYPTKEY']) ? $_SERVER['HTTP_ENCRYPTKEY'] : '';
$params['merchantId'] = isset($_SERVER['HTTP_MERCHANTID']) ? $_SERVER['HTTP_MERCHANTID'] : ''; $params['merchantId'] = isset($_SERVER['HTTP_MERCHANTID']) ? $_SERVER['HTTP_MERCHANTID'] : '';
$data = $this->NotifyCheckHmac($private_key, $params, $public_key, $this->config['password']) $data = $this->NotifyCheckHmac($private_key, $params, $public_key, $this->config['password']);
// 支付状态 // 支付状态
if(isset($data['status']) && $data['status'] == 'SUCCESS') if(isset($data['status']) && $data['status'] == 'SUCCESS')