correct signature (should be uppercase)
This commit is contained in:
parent
6324b24656
commit
f6a0b56c69
@ -60,10 +60,10 @@ class RequestSigner implements RequestSignerInterface
|
|||||||
|
|
||||||
switch ($request->signMethod) {
|
switch ($request->signMethod) {
|
||||||
case Constants::SIGN_TYPE_MD5:
|
case Constants::SIGN_TYPE_MD5:
|
||||||
$request->sign = md5($authenticator->getAppSecret() . $stringToBeSigned);
|
$request->sign = strtoupper(md5($authenticator->getAppSecret() . $stringToBeSigned));
|
||||||
break;
|
break;
|
||||||
case Constants::SIGN_TYPE_HMAC:
|
case Constants::SIGN_TYPE_HMAC:
|
||||||
$request->sign = hash_hmac('md5', $stringToBeSigned, $authenticator->getAppSecret());
|
$request->sign = strtoupper(hash_hmac('md5', $stringToBeSigned, $authenticator->getAppSecret()));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user