Location: PHPKode > scripts > Paypal Instant Payment Notification > paypal-instant-payment-notification/class.paypalIPNBasicInformation.php
<?php

//
// Edit History:
//
//  Last $Author: munroe $
//  Last Modified: $Date: 2006/09/26 14:39:46 $
//
//  Dick Munroe (hide@address.com) 28-Feb-2006
//      Initial version created
//
//	Dick Munroe (hide@address.com) 25-Sep-2006
//		1.0.1
//			The object must be fully initialized before lower level stuff can be
//			Accessed

/**
 * @author Dick Munroe <hide@address.com>
 * @copyright copyright @ 2006 by Dick Munroe, Cottage Software Works, Inc.
 * @license http://www.csworks.com/publications/ModifiedNetBSD.html
 * @version 1.0.1
 * @package dm.paypal
 * @example ./example.php
 *
 * This is derived from a paypal IPN class written originally by Herve Foucher
 * <hide@address.com> and published through phpclasses.org under the GPL.
 * Herve appears to no longer support this package so I'm updating the support
 * to 1.6 and redesigning a bunch of the internal structure to allow a substantially
 * more object oriented approach to the whole problem.
 *
 * This object captures the IPN Basic Information as given in table A.1 of the
 * Order Management Integration Guide.
 */

include_once('class.paypalIPNDataBase.php') ;

class paypalIPNBasicInformation extends paypalIPNDataBase
{
    var $business ;
    var $item_name ;
    var $item_number ;
    var $quantity ;
    var $receiver_email ;
    var $receiver_id ;

    /**
     * @desc Buyer information constructor
     * @param array $theSource [by reference] post data of the IPN.
     */

    function paypalIPNBasicInformation(&$theSource)
    {
		$xxx = array('/^item_name\d+$/',
				 '/^item_number\d+$/',
				 '/^quantity\d+$/') ;

		$this->paypalIPNDataBase($theSource, $xxx) ;
    }
}

?>
Return current item: Paypal Instant Payment Notification