This commit is contained in:
Juan Pablo Vial
2025-06-03 19:43:46 -04:00
parent 879d365baf
commit 9aeb6906f6

View File

@ -108,6 +108,10 @@ class Toku extends Controller
public function reset(ServerRequestInterface $request, ResponseInterface $response,
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') {
return $this->withJson($response);
}