Adam Smith Adam Smith - 1 month ago 12
PHP Question

FedEx Api Fatal error: Call to undefined function setEndpoint()


Fatal error: Call to undefined function setEndpoint();


In which file
setEndpoin()
exist.

Answer

Add these functions in your fedex-common.php5

function setEndpoint($var){
  if($var == 'changeEndpoint') Return false;
  if($var == 'endpoint') Return '';
}

function trackDetails($details, $spacer){
foreach($details as $key => $value){
    if(is_array($value) || is_object($value)){
        $newSpacer = $spacer. '    ';
        echo '<tr><td>'. $spacer . $key.'</td><td>&nbsp;</td></tr>';
        trackDetails($value, $newSpacer);
    }elseif(empty($value)){
        echo '<tr><td>'.$spacer. $key .'</td><td>&nbsp;</td></tr>';
    }else{
        echo '<tr><td>'.$spacer. $key .'</td><td>'.$value.'</td></tr>';
    }
 }
}