<?php
/**
* @author Mubashir Ali (Lahore, Pakistan)
* saad_ali6@yahoo.com
* @category Paypal Invoice API
* @@abstract This performs the CreateAndSend API Operation
* @since 03-01-2011
* @version 1.2
*/
$API_Username = "xxxxxxxxxxxxxxxxx.xxx.xxx";
$API_Password = "xxxxxxxxxx";
$Signature = "xxxxxxxxxxxxxxxxx.xxxxxxxxxxxxx-xxxxxxxxxxxxx-xxxxxxxxxx";
$business = "xxxxxxxx@xxxxxx.xxx";
require_once('class.invoice.php');
$ppInv = new PaypalInvoiceAPI("sandbox");
$invoiceId = "xxxx-xxxx-xxxx-xxxx-xxxx";
$res = $ppInv->doGetInvoiceDetail($invoiceId);
if($res['responseEnvelope.ack']== "Success")
{
echo "<pre>";
print_r($res);
echo "</pre>";
}
else
{
echo $ppInv->formatErrorMessages($res);
}
?>
|