Skip to content

Commit

Permalink
resolve encode float issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bencagri committed May 15, 2024
1 parent b0cca60 commit 392309a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Service/BaseService.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function __construct(OderoClient $client, HttpClient $http)
*/
public function generateMerchantSignature(array $body, $merchantId, $merchantToken): string
{
$merchantSignatureHeader = hash("sha256", $merchantId . json_encode($body) . $merchantToken);
$merchantSignatureHeader = hash("sha256", $merchantId . json_encode($body, JSON_NUMERIC_CHECK) . $merchantToken);
return sprintf('%s|%s', $merchantId, $merchantSignatureHeader);
}

Expand Down

0 comments on commit 392309a

Please sign in to comment.