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