|
@@ -578,7 +578,7 @@ class Pay extends Api
|
|
|
// $sign_bytes = strtoupper($this->base16_encode($sign_bytes));
|
|
|
|
|
|
$sign_bytes = $this->base16_encode(md5($data));
|
|
|
- $hdc_token = hash_hmac('sha256', $sign_bytes, base64_decode(config('pay_appkey')), false);
|
|
|
+ $hdc_token = hash_hmac('sha256', $sign_bytes, config('pay_appkey'), false);
|
|
|
// $hdc_token = strtolower($this->base16_encode($hdc_token));
|
|
|
|
|
|
$header = [
|