Skip to content

Commit

Permalink
Fixed new api
Browse files Browse the repository at this point in the history
  • Loading branch information
chapdel committed Sep 4, 2023
1 parent f7ebe42 commit ad23439
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NotchPay.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ private static function validateApiKey($apiKey): bool
throw new InvalidArgumentException('Api key must be a string and cannot be empty');
}

if(substr( $apiKey, 0, 2 ) !== "b." && substr( $apiKey, 0, 3 ) !== "sb." && substr( $apiKey, 0, 2 ) !== "pk.") {
if(substr( $apiKey, 0, 2 ) !== "b." && substr( $apiKey, 0, 3 ) !== "sb." && substr( $apiKey, 0, 3 ) !== "pk.") {
throw new InvalidArgumentException('Api key must have a valid signature.');
}
return true;
Expand Down

0 comments on commit ad23439

Please sign in to comment.