|
@@ 82-83 (lines=2) @@
|
| 79 |
|
|
| 80 |
|
if ($info['http_code'] == "200") |
| 81 |
|
return App::make('\SOSTheBlack\Moip\Response', [['response' => true, 'error' => null, 'xml' => $ret]]); |
| 82 |
|
elseif ($info['http_code'] == "500") |
| 83 |
|
return App::make('\SOSTheBlack\Moip\Response', [['response' => false, 'error' => 'Error processing XML', 'xml' => null]]); |
| 84 |
|
elseif ($info['http_code'] == "401") |
| 85 |
|
return App::make('\SOSTheBlack\Moip\Response', [['response' => false, 'error' => 'Authentication failed', 'xml' => null]]); |
| 86 |
|
else |
|
@@ 84-85 (lines=2) @@
|
| 81 |
|
return App::make('\SOSTheBlack\Moip\Response', [['response' => true, 'error' => null, 'xml' => $ret]]); |
| 82 |
|
elseif ($info['http_code'] == "500") |
| 83 |
|
return App::make('\SOSTheBlack\Moip\Response', [['response' => false, 'error' => 'Error processing XML', 'xml' => null]]); |
| 84 |
|
elseif ($info['http_code'] == "401") |
| 85 |
|
return App::make('\SOSTheBlack\Moip\Response', [['response' => false, 'error' => 'Authentication failed', 'xml' => null]]); |
| 86 |
|
else |
| 87 |
|
return App::make('\SOSTheBlack\Moip\Response', [['response' => false, 'error' => $err, 'xml' => null]]); |
| 88 |
|
} else { |