You are here

private static function Braintree_WebhookNotification::_matchingSignature in Commerce Braintree 7

1 call to Braintree_WebhookNotification::_matchingSignature()
Braintree_WebhookNotification::_validateSignature in braintree_php/lib/Braintree/WebhookNotification.php

File

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

Class

Braintree_WebhookNotification

Code

private static function _matchingSignature($signaturePairs) {
  foreach ($signaturePairs as $pair) {
    $components = preg_split("/\\|/", $pair);
    if ($components[0] == Braintree_Configuration::publicKey()) {
      return $components[1];
    }
  }
  return null;
}