-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathSigner.php
More file actions
27 lines (26 loc) · 797 Bytes
/
Signer.php
File metadata and controls
27 lines (26 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
namespace Dfe\SecurePay;
/**
* 2016-08-26
* @see \Dfe\SecurePay\Signer\Request
* @see \Dfe\SecurePay\Signer\Response
* @method Settings s()
*/
abstract class Signer extends \Df\PaypalClone\Signer {
/**
* 2016-08-27
* @used-by self::sign()
* @see \Dfe\SecurePay\Signer\Request::values()
* @see \Dfe\SecurePay\Signer\Response::values()
* @return string[]
*/
abstract protected function values():array;
/**
* 2016-08-27
* https://github.com/thephpleague/omnipay-securepay/blob/v2.1.0/src/Message/DirectPostAuthorizeRequest.php#L32-L47
* @override
* @see \Df\PaypalClone\Signer::sign()
* @used-by \Df\PaypalClone\Signer::_sign()
*/
final protected function sign():string {return sha1(implode('|', dfa_insert($this->values(), 1, $this->s()->password())));}
}