Respuesta 200 a webhook de Toku
This commit is contained in:
@ -49,7 +49,7 @@ class Toku extends Controller
|
|||||||
$input = json_decode($body->getContents(), true);
|
$input = json_decode($body->getContents(), true);
|
||||||
try {
|
try {
|
||||||
if ($tokuService->successEvent($input)) {
|
if ($tokuService->successEvent($input)) {
|
||||||
return $responseFactory->createResponse(204);
|
return $responseFactory->createResponse(200);
|
||||||
}
|
}
|
||||||
return $responseFactory->createResponse(409, 'Payment could not be updated');
|
return $responseFactory->createResponse(409, 'Payment could not be updated');
|
||||||
} catch (InvalidResult $exception) {
|
} catch (InvalidResult $exception) {
|
||||||
|
Reference in New Issue
Block a user