File: cancel.example.php

Recommend this page to a friend!
  Classes of Mubashir Ali  >  Paypal Invoice API  >  cancel.example.php  >  Download  
File: cancel.example.php
Role: Example script
Content type: text/plain
Description: It is an example that shows how the CancelInvoice API Operation is performed
Class: Paypal Invoice API
Create and manage invoices Paypal Invoicing API
Author: By
Last change:
Date: 8 years ago
Size: 1,051 bytes


Class file image Download
     * @author Mubashir Ali (Lahore, Pakistan)
     * @category Paypal Invoice API
     * @@abstract This class performs the PAYPAL INVOICE API's operations
     * @since 03-01-2012
     * @version 1.1
     * @todo Basic functionalities are performed - workflow of pending tasks still left
     * There is sample Array data is also entered to view the demo

$API_Username = "";
$API_Password = "xxxxxxxxxx";
$Signature = "xxxxxxxxxxxxxxxxx.xxxxxxxxxxxxx-xxxxxxxxxxxxx-xxxxxxxxxx";
$business = "";

$ppInv = new PaypalInvoiceAPI("sandbox"); //pass 'live' for actual paypal account

$aryData['response_invoice_id'] = "xxxx-xxxx-xxxx-xxxx";
$aryData['email_subject'] = "Cancel Invoice Subject";
$aryData['email_body'] = "Cancel Invoice Notes";
$res = $objInv->doCancelInvoice($aryData);

For more information send a message to info at phpclasses dot org.