From f6a0b56c699514540fd0f793fc8acf23b479f978 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B0=D0=B2=D0=B5=D0=BB?= Date: Mon, 28 Sep 2020 16:21:19 +0300 Subject: [PATCH] correct signature (should be uppercase) --- src/Service/RequestSigner.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Service/RequestSigner.php b/src/Service/RequestSigner.php index e078a01..96a1fdc 100644 --- a/src/Service/RequestSigner.php +++ b/src/Service/RequestSigner.php @@ -60,10 +60,10 @@ class RequestSigner implements RequestSignerInterface switch ($request->signMethod) { case Constants::SIGN_TYPE_MD5: - $request->sign = md5($authenticator->getAppSecret() . $stringToBeSigned); + $request->sign = strtoupper(md5($authenticator->getAppSecret() . $stringToBeSigned)); break; case Constants::SIGN_TYPE_HMAC: - $request->sign = hash_hmac('md5', $stringToBeSigned, $authenticator->getAppSecret()); + $request->sign = strtoupper(hash_hmac('md5', $stringToBeSigned, $authenticator->getAppSecret())); break; } }