Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure you want to rename?
SAFE MODE
/
application
/
vendor
/
braintree
/
braintree_php
/
lib
/
Braintree
:
SignatureService.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?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); } }