@@ -26,6 +26,10 @@ discard block |
||
26 | 26 | |
27 | 27 | private $rawRequest; |
28 | 28 | |
29 | + /** |
|
30 | + * @param string $baseUri |
|
31 | + * @param string $resource |
|
32 | + */ |
|
29 | 33 | public function __construct( |
30 | 34 | $baseUri, |
31 | 35 | $resource, |
@@ -156,6 +160,9 @@ discard block |
||
156 | 160 | return HttpClientDiscovery::find(); |
157 | 161 | } |
158 | 162 | |
163 | + /** |
|
164 | + * @return ResponseInterface |
|
165 | + */ |
|
159 | 166 | private function sendRequest(RequestInterface $request) |
160 | 167 | { |
161 | 168 | $request = $this->authenticate($request); |
@@ -182,7 +182,7 @@ |
||
182 | 182 | * reason. |
183 | 183 | * @param string $transactionId The unique identifier from transaction. |
184 | 184 | * @param string $errorCode The error code if transaction was failed. |
185 | - * @param string $responsecCode The ISO 8583 response code. Not always |
|
185 | + * @param string $responseCode The ISO 8583 response code. Not always |
|
186 | 186 | * available. |
187 | 187 | * @param array $payload An associative array of the response from |
188 | 188 | * gateway including http status and headers. |
@@ -20,7 +20,7 @@ |
||
20 | 20 | * So here we can add directly to client the appropriate authentication |
21 | 21 | * info. |
22 | 22 | * |
23 | - * @param Larium\Pay\Client\Client $client |
|
23 | + * @param RestClient $client |
|
24 | 24 | * @return void |
25 | 25 | */ |
26 | 26 | abstract protected function authenticate(RestClient $client); |