BraintreeSignatureService

The Paid Memberships Pro Braintree SignatureService class.

Defined (1)

The class is defined in the following location(s).

/includes/lib/Braintree/lib/Braintree/SignatureService.php  
  1. class SignatureService 
  2.  
  3. public function __construct($key, $digest) 
  4. $this->key = $key; 
  5. $this->digest = $digest; 
  6.  
  7. public function sign($payload) 
  8. return $this->hash($payload) . "|" . $payload; 
  9.  
  10. public function hash($data) 
  11. return call_user_func($this->digest, $this->key, $data); 
  12.