Boa noite!
Me chamo Vinícius e estou trabalhando em uma integração entre o meu aplicativo e o VTEX. Recentemente eu montei algumas requisições para envio de pedido e seguindo a documentação, fiz o processo de “Simulation Card” → “Put Order (sem carrinho existente)” → “Payment Confirmation” → “Process Order”.
Porém, no último ponto, que é de fato o processamento do pedido, estou recebendo um Erro 500, sem nenhuma mensagem por parte do VTEX.
Estou integrando através do Guzzle, usando Laravel.
Segue a estrutura do meu envio e o retorno do VTEX.
Envio e estrutura:
$responseProcess = $vtexApi->getClient('https://smartbr.myvtex.com.br')->post("/api/checkout/pub/gatewayCallback/{$orderGroup}", [
'headers' => [
'Accept' => 'application/json',
'Content-Type' => 'application/json',
'Cookie' => 'Vtex_CHKO_Auth=' . $data['Vtex_CHKO_Auth'] . '; VTEX_CHK_Order_Auth=' . $data['VTEX_CHK_Order_Auth']
]
]);
Retorno da api do VTEX:
GuzzleHttp\Psr7\Response {#3354 ▼ // app/Http/Controllers/Web/TestController.php:130
-reasonPhrase: "Internal Server Error"
-statusCode: 500
-headers: array:8 [▼
"Content-Length" => array:1 [▼
0 => "0"
]
"Connection" => array:1 [▼
0 => "keep-alive"
]
"Date" => array:1 [▼
0 => "Tue, 11 Mar 2025 00:51:17 GMT"
]
"X-VTEX-Janus-Router-Backend-App" => array:1 [▼
0 => "chk-v2.332.1"
]
"X-Cache" => array:1 [▼
0 => "Error from cloudfront"
]
"Via" => array:1 [▼
0 => "1.1 65ffb2ded43b3ae52e7d29216ce6b644.cloudfront.net (CloudFront)"
]
"X-Amz-Cf-Pop" => array:1 [▼
0 => "GRU3-P2"
]
"X-Amz-Cf-Id" => array:1 [▼
0 => "-hkCs3bfeNzzbwoAcw09HMSAQ2__GG07yoGwWjgzzS0_LTW0w7CYZQ=="
]
]
-headerNames: array:8 [▼
"content-length" => "Content-Length"
"connection" => "Connection"
"date" => "Date"
"x-vtex-janus-router-backend-app" => "X-VTEX-Janus-Router-Backend-App"
"x-cache" => "X-Cache"
"via" => "Via"
"x-amz-cf-pop" => "X-Amz-Cf-Pop"
"x-amz-cf-id" => "X-Amz-Cf-Id"
]
-protocol: "1.1"
-stream:
GuzzleHttp\Psr7
\
Stream {#3353 ▼
-stream: stream resource @29 ▶}
-size: 0
-seekable: true
-readable: true
-writable: true
-uri: "php://temp"
-customMetadata: []
}
}
Desde já, agradeço pela atenção!