1 post / 0 new
hypermarketvenezuela
hypermarketvenezuela's picture
Respuesta Error 500

Saludos, retomé la integracion con la API de mercantil.

Estoy tratando de hacer la consulta para la autenticacion con la URL:

https://apimbu.mercantilbanco.com/mercantil-banco/sandbox/v1/payment/get...

Este es mi codigo:


$postjson = [ "merchant_identify" => [ "integratorId"=>"1", "merchantId"=>"150408", "terminalId"=>"1" ], "transaction_authInfo"=> [ "trx_type"=>"solaut", "payment_method"=>"tdd", "card_number"=>"'.$card_number.'", "customer_id"=>"'.$customer_id.'" ]
]; $datosCodificados = json_encode($postjson); curl_setopt_array($curl, [ CURLOPT_URL => "https://apimbu.mercantilbanco.com/mercantil-banco/sandbox/v1/payment/getauth", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => $datosCodificados, CURLOPT_HTTPHEADER => [ "X-IBM-Client-Id: ".$secret_key, "accept: application/json", "content-type: application/json" ], ]); $response = curl_exec($curl); $err = curl_error($curl);


 pero me devuelve: HTTP Status 500 – Internal Server Error