@@ -85,7 +85,6 @@ discard block |
||
| 85 | 85 | * |
| 86 | 86 | * Initializes the class with an array of API values. |
| 87 | 87 | * |
| 88 | - * @param array $config |
|
| 89 | 88 | * @return void |
| 90 | 89 | * @throws exception if the values array is not valid |
| 91 | 90 | */ |
@@ -129,8 +128,6 @@ discard block |
||
| 129 | 128 | * |
| 130 | 129 | * Handles submission of all API endpoints queries |
| 131 | 130 | * |
| 132 | - * @param string $url The API endpoint URL |
|
| 133 | - * @param json $data The data to POST to the endpoint $url |
|
| 134 | 131 | * @return object|boolean Curl response or FALSE on failure |
| 135 | 132 | * @throws exception if the Access Token is not valid |
| 136 | 133 | */ |
@@ -148,6 +145,9 @@ discard block |
||
| 148 | 145 | } |
| 149 | 146 | |
| 150 | 147 | |
| 148 | + /** |
|
| 149 | + * @return resource |
|
| 150 | + */ |
|
| 151 | 151 | public function getAccessToken() |
| 152 | 152 | { |
| 153 | 153 | $credentials = base64_encode($this->consumer_key . ':' . $this->consumer_secret); |
@@ -170,6 +170,9 @@ discard block |
||
| 170 | 170 | } |
| 171 | 171 | } |
| 172 | 172 | |
| 173 | + /** |
|
| 174 | + * @param string $url |
|
| 175 | + */ |
|
| 173 | 176 | private function submit_request($url, $data) |
| 174 | 177 | { // Returns cURL response |
| 175 | 178 | |
@@ -265,8 +268,6 @@ discard block |
||
| 265 | 268 | * |
| 266 | 269 | * This method is used to register URLs for callbacks when money is sent from the MPesa toolkit menu |
| 267 | 270 | * |
| 268 | - * @param string $confirmURL The local URL that MPesa calls to confirm a payment |
|
| 269 | - * @param string $ValidationURL The local URL that MPesa calls to validate a payment |
|
| 270 | 271 | * @return object Curl Response from submit_request, FALSE on failure |
| 271 | 272 | */ |
| 272 | 273 | |
@@ -3,8 +3,8 @@ |
||
| 3 | 3 | namespace Konectdigital\Mpesa; |
| 4 | 4 | |
| 5 | 5 | use Exception; |
| 6 | -use Illuminate\Support\Facades\Log; |
|
| 7 | 6 | use Illuminate\Support\Facades\File; |
| 7 | +use Illuminate\Support\Facades\Log; |
|
| 8 | 8 | |
| 9 | 9 | |
| 10 | 10 | class Mpesa |