Sorry, our app receives the response. What I meant to say is that our app then sends the response to a Windows service which then process the information. In the event of a communication issue and the Windows service does not get the response, is there a way for the Windows service to make a call to get the last transaction? Is there an Android SDK function that will get the last transaction?
<?php $mid = YOUR_MID; $token = YOUR_API_TOKEN; // If testing on sandbox use with same endpoint //$restapi = 'https://apisandbox.dev.clover.com'; $restapi = 'https://api.clover.com'; $header = array(); $header[] = sprintf('Authorization: Bearer %s', $token); $ch = curl_init(); curl_setopt_array($ch, array( CURLOPT_RETURNTRANSFER => TRUE, CURLOPT_URL => sprintf('%s/v3/merchants/%s/orders?limit=10', $restapi, $mid), CURLOPT_HTTPHEADER => $header )); $result = curl_exec($ch); if ($result === false) { echo sprintf('%s: %s', "CURL Error", curl_error($ch)); } else { header('Content-Type: application/json'); print_r($result); curl_close($ch); } ?>Hope this helps.
4 People are following this question.