@@ 35-48 (lines=14) @@ | ||
32 | } |
|
33 | } |
|
34 | ||
35 | public function generateSignature() |
|
36 | { |
|
37 | $params = [ |
|
38 | $this->getAmount(), |
|
39 | '', |
|
40 | $this->request->getSecretKey2() |
|
41 | ]; |
|
42 | ||
43 | foreach ($this->getCustomFields() as $field => $value) { |
|
44 | $params[] = "$field=$value"; |
|
45 | } |
|
46 | ||
47 | return md5(implode(':', $params)); |
|
48 | } |
|
49 | ||
50 | public function getCustomFields() |
|
51 | { |
@@ 31-45 (lines=15) @@ | ||
28 | ] + $this->getCustomFields(); |
|
29 | } |
|
30 | ||
31 | public function generateSignature() |
|
32 | { |
|
33 | $params = [ |
|
34 | $this->getPurse(), |
|
35 | $this->getAmount(), |
|
36 | '', |
|
37 | $this->getSecretKey() |
|
38 | ]; |
|
39 | ||
40 | foreach ($this->getCustomFields() as $field => $value) { |
|
41 | $params[] = "$field=$value"; |
|
42 | } |
|
43 | ||
44 | return md5(implode(':', $params)); |
|
45 | } |
|
46 | ||
47 | public function getCustomFields() |
|
48 | { |