求助:Verify Alipay Response Sign Failed #951
Unanswered
yanghaitao3864
asked this question in
Q&A
Replies: 1 comment
-
|
可以看下 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
请求支付时验签方法中的sign为空值,返回了这个错误:Verify Alipay Response Sign Failed
protected function verifySign(Rocket $rocket): void
{
$response = $rocket->getDestination();
$result = $response->get($this->getResultKey($rocket->getPayload()));
$sign = $response->get('sign', '');
write_log('$sign',$sign);
write_log('$sign',$result);
if ('' === $sign || is_null($result)) {
throw new InvalidResponseException(Exception::INVALID_RESPONSE_SIGN, 'Verify Alipay Response Sign Failed', $response);
}
Beta Was this translation helpful? Give feedback.
All reactions