You are here

public static function Braintree_WebhookNotification::verify in Commerce Braintree 7

1 call to Braintree_WebhookNotification::verify()
Braintree_WebhookNotificationTest::testVerify in braintree_php/tests/unit/WebhookNotificationTest.php

File

braintree_php/lib/Braintree/WebhookNotification.php, line 21

Class

Braintree_WebhookNotification

Code

public static function verify($challenge) {
  $publicKey = Braintree_Configuration::publicKey();
  $digest = Braintree_Digest::hexDigest($challenge);
  return "{$publicKey}|{$digest}";
}