cancel
Showing results for 
Search instead for 
Did you mean: 

Not receiving a response back on sandbox

Our development site stopped receiving a response back from our authorize.net sandbox. The Curl code has been functioning correctly for sometime and we have no evidence of anything changing in our repo. I tested the API request on the API documentation Authorize.net page and it worked correctly. Our production site seems to be functioning appropriately. 

Here is an example of our PHP Curl

 

        // CURL to endpoint
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_POST, 1);
        curl_setopt($ch, CURLOPT_POSTFIELDS, $obj);
        curl_setopt($ch, CURLOPT_URL, 'https://apitest.authorize.net/xml/v1/request.api');
        curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        $response = curl_exec($ch);
        $status_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
        $curl_errors = curl_error($ch);
        curl_close($ch);

 

response returns blank, status_code returns 0, curl_errors returns blank.

PMDeveloper
Member
0 REPLIES 0