@@ -94,9 +94,9 @@ discard block |
||
| 94 | 94 | $type = null; |
| 95 | 95 | if ($paymentType == 'direct') { |
| 96 | 96 | $type = '2'; |
| 97 | - }else if ($paymentType == 'reserve') { |
|
| 97 | + } else if ($paymentType == 'reserve') { |
|
| 98 | 98 | $type = '1'; |
| 99 | - }else{ |
|
| 99 | + } else{ |
|
| 100 | 100 | throw new Exceptions\InstapagoException("Invalid Payment type"); |
| 101 | 101 | } |
| 102 | 102 | |
@@ -217,11 +217,11 @@ discard block |
||
| 217 | 217 | $args = [ |
| 218 | 218 | 'query' => $fields |
| 219 | 219 | ]; |
| 220 | - }else if ($method == 'POST' || $method == 'DELETE') { |
|
| 220 | + } else if ($method == 'POST' || $method == 'DELETE') { |
|
| 221 | 221 | $args = [ |
| 222 | 222 | 'form_params' => $fields |
| 223 | 223 | ]; |
| 224 | - }else{ |
|
| 224 | + } else{ |
|
| 225 | 225 | throw new Exception("Not implemented yet", 1); |
| 226 | 226 | } |
| 227 | 227 | |
@@ -250,24 +250,24 @@ discard block |
||
| 250 | 250 | throw new Exceptions\InvalidInputException( |
| 251 | 251 | 'Error al validar los datos enviados.' |
| 252 | 252 | ); |
| 253 | - }else if ($code == 401) { |
|
| 253 | + } else if ($code == 401) { |
|
| 254 | 254 | throw new Exceptions\AuthException( |
| 255 | 255 | 'Error de autenticación, ha ocurrido un error' |
| 256 | 256 | . ' con las llaves utilizadas.'); |
| 257 | - }else if ($code == 403) { |
|
| 257 | + } else if ($code == 403) { |
|
| 258 | 258 | throw new Exceptions\BankRejectException( |
| 259 | 259 | 'Pago Rechazado por el banco.' |
| 260 | 260 | ); |
| 261 | - }else if ($code == 500) { |
|
| 261 | + } else if ($code == 500) { |
|
| 262 | 262 | throw new Exceptions\InstapagoException( |
| 263 | 263 | 'Ha Ocurrido un error interno dentro del servidor.' |
| 264 | 264 | ); |
| 265 | - }else if ($code == 503) { |
|
| 265 | + } else if ($code == 503) { |
|
| 266 | 266 | throw new Exceptions\InstapagoException( |
| 267 | 267 | 'Ha Ocurrido un error al procesar los parámetros de entrada.' |
| 268 | 268 | . ' Revise los datos enviados y vuelva a intentarlo.' |
| 269 | 269 | ); |
| 270 | - }else if ($code == 201) { |
|
| 270 | + } else if ($code == 201) { |
|
| 271 | 271 | return [ |
| 272 | 272 | 'code' => $code, |
| 273 | 273 | 'msg_banco' => $obj->message, |
@@ -275,7 +275,7 @@ discard block |
||
| 275 | 275 | 'id_pago' => $obj->id, |
| 276 | 276 | 'reference' => $obj->reference, |
| 277 | 277 | ]; |
| 278 | - }else { |
|
| 278 | + } else { |
|
| 279 | 279 | throw new \Exception('Not implemented yet'); |
| 280 | 280 | } |
| 281 | 281 | } |