@@ -228,7 +228,7 @@ discard block |
||
| 228 | 228 | * Realiza Transaccion |
| 229 | 229 | * Efectúa y retornar una respuesta a un metodo de pago. |
| 230 | 230 | * |
| 231 | - *@param $url endpoint a consultar |
|
| 231 | + *@param string $url endpoint a consultar |
|
| 232 | 232 | *@param $fields datos para la consulta |
| 233 | 233 | * |
| 234 | 234 | *@return $obj array resultados de la transaccion |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | /** |
| 252 | 252 | * Realiza Transaccion para los métodos `cancelPayment` y `paymentInfo` |
| 253 | 253 | * |
| 254 | - *@param $url endpoint a consultar |
|
| 254 | + *@param string $url endpoint a consultar |
|
| 255 | 255 | * |
| 256 | 256 | *@return $obj array resultados de la transaccion |
| 257 | 257 | * https://github.com/abr4xas/php-instapago/blob/master/help/DOCUMENTACION.md#PENDIENTE |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | $this->statusId = $statusId; |
| 102 | 102 | $this->ipAddres = $ipAddres; |
| 103 | 103 | |
| 104 | - $url = $this->root.'payment'; // endpoint |
|
| 104 | + $url = $this->root . 'payment'; // endpoint |
|
| 105 | 105 | |
| 106 | 106 | $fields = [ |
| 107 | 107 | 'KeyID' => $this->keyId, //required |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | $this->idPago = $idPago; |
| 146 | 146 | $this->amount = $amount; |
| 147 | 147 | |
| 148 | - $url = $this->root.'complete'; // endpoint |
|
| 148 | + $url = $this->root . 'complete'; // endpoint |
|
| 149 | 149 | |
| 150 | 150 | $fields = [ |
| 151 | 151 | 'KeyID' => $this->keyId, //required |
@@ -179,12 +179,12 @@ discard block |
||
| 179 | 179 | |
| 180 | 180 | $this->idPago = $idPago; |
| 181 | 181 | |
| 182 | - $url = $this->root.'payment'; // endpoint |
|
| 182 | + $url = $this->root . 'payment'; // endpoint |
|
| 183 | 183 | |
| 184 | 184 | $myCurl = curl_init(); |
| 185 | 185 | curl_setopt($myCurl, CURLOPT_RETURNTRANSFER, 1); |
| 186 | 186 | curl_setopt($myCurl, CURLOPT_CUSTOMREQUEST, "DELETE"); |
| 187 | - curl_setopt($myCurl, CURLOPT_URL, $url.'?'.'KeyID='.$this->keyId.'&PublicKeyId='.$this->publicKeyId.'&id='.$this->idPago); |
|
| 187 | + curl_setopt($myCurl, CURLOPT_URL, $url . '?' . 'KeyID=' . $this->keyId . '&PublicKeyId=' . $this->publicKeyId . '&id=' . $this->idPago); |
|
| 188 | 188 | $server_output = curl_exec($myCurl); |
| 189 | 189 | curl_close($myCurl); |
| 190 | 190 | $obj = json_decode($server_output); |
@@ -211,7 +211,7 @@ discard block |
||
| 211 | 211 | |
| 212 | 212 | $this->checkRequiredParams($params); |
| 213 | 213 | |
| 214 | - $url = $this->root.'payment'; // endpoint |
|
| 214 | + $url = $this->root . 'payment'; // endpoint |
|
| 215 | 215 | |
| 216 | 216 | $obj = $this->curlTransaccionInfo($url, $idPago); |
| 217 | 217 | $result = $this->checkResponseCode($obj); |
@@ -261,7 +261,7 @@ discard block |
||
| 261 | 261 | $this->idPago = $idPago; |
| 262 | 262 | |
| 263 | 263 | $myCurl = curl_init(); |
| 264 | - curl_setopt($myCurl, CURLOPT_URL, $url.'?'.'KeyID='.$this->keyId.'&PublicKeyId='.$this->publicKeyId.'&id='.$this->idPago); |
|
| 264 | + curl_setopt($myCurl, CURLOPT_URL, $url . '?' . 'KeyID=' . $this->keyId . '&PublicKeyId=' . $this->publicKeyId . '&id=' . $this->idPago); |
|
| 265 | 265 | curl_setopt($myCurl, CURLOPT_RETURNTRANSFER, 1); |
| 266 | 266 | $server_output = curl_exec($myCurl); |
| 267 | 267 | curl_close($myCurl); |