feature/cierres #25

Open
aldarien wants to merge 446 commits from feature/cierres into develop
157 changed files with 568 additions and 5435 deletions
Showing only changes of commit a9b6f2a87b - Show all commits

View File

@ -108,12 +108,8 @@ class Toku extends Controller
public function reset(ServerRequestInterface $request, ResponseInterface $response, public function reset(ServerRequestInterface $request, ResponseInterface $response,
Service\Venta\MediosPago\Toku $tokuService, ContainerInterface $container): ResponseInterface Service\Venta\MediosPago\Toku $tokuService, ContainerInterface $container): ResponseInterface
{ {
$this->logger->warning('Toku reset', [
'token' => $container->get('TOKU_TOKEN'),
'is_sandbox' => strtolower($container->get('TOKU_ENV')) === 'sandbox'
]);
if (!$container->has('TOKU_ENV') or strtolower($container->get('TOKU_ENV')) !== 'sandbox') { if (!$container->has('TOKU_ENV') or strtolower($container->get('TOKU_ENV')) !== 'sandbox') {
return $this->withJson($response); return $this->withJson($response, ['success' => false], 409);
} }
$input = $request->getParsedBody(); $input = $request->getParsedBody();
$output = [ $output = [