Location: PHPKode > scripts > SnPayPalApi > snpaypalapi/lib/SnPayPalConfig.class.php
<?php
 /**
 * 
 * 
 * @author Michael J. Burgess
 * @package SnPayPal
 * @copyright Michael J. Burgess, 2008
 * @version 1.0
 * @licence MIT
 */
 
/**
 * Encapsulated configuration constants
 *
 * All self explnatory; if not 
 * @see  paypal.com->My Account->Profile->API... & the paypal 'Integration center'
 */
class SnPayPalConfig
{
    const SN_PAYPAL_VERSION = '1.0';
    const USERNAME          = '';
    const PASSWORD          = '';
    const SIGNATURE         = '';
    
    const SSL_CERT_LOCATION = '';
    const API_LOCATION      = 'https://api.paypal.com/2.0/'; //https://api-3t.paypal.com/2.0/  - IF USING SIGNATURE
}


/**
 * Constants that can be used with the paypal API
 * 
 * Initially loaded only with those associated with Transaction requests 
 * @see SnPayPalApi->getTransactions, and the cli implementation at SnPayPalCliMethods
 *
 */
class SnPayPalApiConst
{
    const TRANS_CLASS_RECEIVED  = 'Received';
    const TRANS_CLASS_ALL       = 'All';
    const TRANS_CLASS_ECHECK    = 'ECheck';
    const TRANS_CLASS_WITHDRAWN = 'FundsWithdrawn';
    const TRANS_CLASS_REFERRAL  = 'Referral';
    const TRANS_CLASS_REQUEST   = 'MoneyRequest';
    const TRANS_CLASS_ADDED     = 'FundsAdded';
    const TRANS_CLASS_DIVIDEND  = 'Dividend';
    const TRANS_CLASS_TRANSFER  = 'BalanceTransfer';
    const TRANS_CLASS_SHIPPING  = 'Shipping';
    const TRANS_CLASS_CONVERSION       = 'CurrencyConversions';
    const TRANS_CLASS_SUBSCRIPTION     = 'Subscription';
    const TRANS_CLASS_BALANCEAFFECTING = 'BalanceAffecting';
    
}
?>
Return current item: SnPayPalApi