@@ -86,7 +86,7 @@ |
||
| 86 | 86 | /** |
| 87 | 87 | * Get test mode. |
| 88 | 88 | * |
| 89 | - * @return string |
|
| 89 | + * @return boolean |
|
| 90 | 90 | */ |
| 91 | 91 | public function getTestMode() |
| 92 | 92 | { |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | */ |
| 123 | 123 | public function getPayer() |
| 124 | 124 | { |
| 125 | - return $this->data['buyer_name'] . '/' . $this->data['buyer_username'] . '/' . $this->data['buyer_id']; |
|
| 125 | + return $this->data['buyer_name'].'/'.$this->data['buyer_username'].'/'.$this->data['buyer_id']; |
|
| 126 | 126 | } |
| 127 | 127 | |
| 128 | 128 | /** |
@@ -146,13 +146,13 @@ discard block |
||
| 146 | 146 | $raw = file_get_contents('php://input'); |
| 147 | 147 | $fields = substr($raw, 0, strpos($raw, '&key=')); |
| 148 | 148 | $secret = $this->request->getSecret(); |
| 149 | - $supposed_hash = md5($fields . $secret); |
|
| 149 | + $supposed_hash = md5($fields.$secret); |
|
| 150 | 150 | |
| 151 | 151 | // this is how they actually get it |
| 152 | 152 | $kvs = ''; |
| 153 | 153 | foreach ($this->data as $k => $v) { |
| 154 | 154 | if ($k !== 'key' && $k !== 'username') { |
| 155 | - $kvs .= ($kvs ? '&' : '') . "$k=$v"; |
|
| 155 | + $kvs .= ($kvs ? '&' : '')."$k=$v"; |
|
| 156 | 156 | } |
| 157 | 157 | } |
| 158 | 158 | $hash = md5($kvs); |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | 'item_name' => $this->getDescription(), |
| 29 | 29 | 'finish_url' => $this->getReturnUrl(), |
| 30 | 30 | 'cancel_url' => $this->getCancelUrl(), |
| 31 | - 'variables' => 'notify_url=' . $this->getNotifyUrl(), |
|
| 31 | + 'variables' => 'notify_url='.$this->getNotifyUrl(), |
|
| 32 | 32 | 'button_type_id' => 1, /// Pay Now button |
| 33 | 33 | ]; |
| 34 | 34 | |