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