Skip to content

Commit

Permalink
Merge pull request #84 from square/release/23.0.0.20220817
Browse files Browse the repository at this point in the history
Generated PR for Release: 23.0.0.20220817
  • Loading branch information
daphnechiu authored Aug 18, 2022
2 parents e34c64d + 934cbda commit ddf16d4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class WebhooksHelper {
* @param signatureHeader The value for the {@code x-square-hmacsha256-signature} header.
* @param signatureKey The signature key from the <a href="https://developer.squareup.com/apps">Square Developer portal</a> for the webhook subscription.
* @param notificationUrl The notification endpoint URL as defined in the <a href="https://developer.squareup.com/apps">Square Developer portal</a> for the webhook subscription.
* @return {@code true} if the signature is valid, indicating that the event can be trusted as it came from Square.<br/>
* @return {@code true} if the signature is valid, indicating that the event can be trusted as it came from Square.
* {@code false} if the signature validation fails, indicating that the event did not come from Square, so it may be malicious and should be discarded.
*/
public static boolean isValidWebhookEventSignature(String requestBody, String signatureHeader,
Expand Down

0 comments on commit ddf16d4

Please sign in to comment.