@@ -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 | { |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | */ |
90 | 90 | public function getTime() |
91 | 91 | { |
92 | - return date('c', strtotime($this->data['transaction_date'] . ' EDT')); |
|
92 | + return date('c', strtotime($this->data['transaction_date'].' EDT')); |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | /** |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | */ |
120 | 120 | public function getPayer() |
121 | 121 | { |
122 | - return $this->data['buyer_name'] . '/' . $this->data['buyer_username'] . '/' . $this->data['buyer_id']; |
|
122 | + return $this->data['buyer_name'].'/'.$this->data['buyer_username'].'/'.$this->data['buyer_id']; |
|
123 | 123 | } |
124 | 124 | |
125 | 125 | /** |
@@ -143,13 +143,13 @@ discard block |
||
143 | 143 | $raw = file_get_contents('php://input'); |
144 | 144 | $fields = substr($raw, 0, strpos($raw, '&key=')); |
145 | 145 | $secret = $this->request->getSecret(); |
146 | - $supposed_hash = md5($fields . $secret); |
|
146 | + $supposed_hash = md5($fields.$secret); |
|
147 | 147 | |
148 | 148 | // this is how they actually get it |
149 | 149 | $kvs = ''; |
150 | 150 | foreach ($this->data as $k => $v) { |
151 | 151 | if ($k !== 'key' && $k !== 'username') { |
152 | - $kvs .= ($kvs ? '&' : '') . "$k=$v"; |
|
152 | + $kvs .= ($kvs ? '&' : '')."$k=$v"; |
|
153 | 153 | } |
154 | 154 | } |
155 | 155 | $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 |