Login   Register  
PHP Classes
elePHPant
Icontem

File: invoicedetail.example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Mubashir Ali  >  Paypal Invoice API  >  invoicedetail.example.php  >  Download  
File: invoicedetail.example.php
Role: Example script
Content type: text/plain
Description: It is an example that shows how to find the Invoice Detail using PayPal Invoicing API
Class: Paypal Invoice API
Create and manage invoices Paypal Invoicing API
Author: By
Last change:
Date: 2012-01-03 04:19
Size: 863 bytes
 

Contents

Class file image Download
<?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);
    }

?>