Categories
Archive

Get Balance

$value) {
$tmpAr = explode(“=”, $value);
if(sizeof($tmpAr) > 1) {
$httpParsedResponseAr[$tmpAr[0]] = $tmpAr[1];
}
}
if((0 == sizeof($httpParsedResponseAr)) || !array_key_exists(‘ACK’, $httpParsedResponseAr)) {
exit(“Invalid HTTP Response for POST request($nvpreq) to $API_Endpoint.”);
}
return $httpParsedResponseAr;
}
$nvpStr=””;
$httpParsedResponseAr = PPHttpPost(‘GetBalance’, $nvpStr);
if(“SUCCESS” == strtoupper($httpParsedResponseAr[“ACK”]) || “SUCCESSWITHWARNING” == strtoupper($httpParsedResponseAr[“ACK”])) {
exit(‘GetBalance Completed Successfully: ‘.print_r($httpParsedResponseAr, true));
} else {
exit(‘GetBalance failed: ‘ . print_r($httpParsedResponseAr, true));
}
?>
PHP:This will return the balance for a payp