1
0
mirror of synced 2024-11-22 12:56:02 +03:00

correct signature (should be uppercase)

This commit is contained in:
Pavel 2020-09-28 16:21:19 +03:00
parent 6324b24656
commit f6a0b56c69

View File

@ -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;
} }
} }