• File: SignatureService.php
  • Full Path: /var/www/crm_set/application/vendor/braintree/braintree_php/lib/Braintree/SignatureService.php
  • Date Modified: 09/21/2026 4:20 AM
  • File size: 389 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php
namespace Braintree;

class SignatureService
{

    public function __construct($key, $digest)
    {
        $this->key = $key;
        $this->digest = $digest;
    }

    public function sign($payload)
    {
        return $this->hash($payload) . "|" . $payload;
    }

    public function hash($data)
    {
        return call_user_func($this->digest, $this->key, $data);
    }

}