Example #1
0
<?php

/**
*   IPN processor for Paypal notifications.
*
*   @author     Lee Garner <*****@*****.**>
*   @copyright  Copyright (c) 2011-2014 Lee Garner <*****@*****.**>
*   @package    paypal
*   @version    0.5.0
*   @license    http://opensource.org/licenses/gpl-2.0.php 
*               GNU Public License v2 or later
*   @filesource
*/
/** Import core glFusion functions */
require_once '../../lib-common.php';
USES_paypal_functions();
/** Import IPN class */
USES_paypal_class_ipn('paypal');
if ($_PP_CONF['debug_ipn'] == 1) {
    // Get the complete IPN message prior to any processing
    COM_errorLog("Recieved IPN:", 1);
    COM_errorLog(var_export($_POST, true), 1);
}
// Process IPN request
$ipn = new PaypalIPN($_POST);
$ipn->Process();
// Finished (this isn't necessary...but heck...why not?)
echo "Thanks";
Example #2
0
<?php

/**
*   IPN processor for Amazon SimplePay notifications.
*
*   @author     Lee Garner <*****@*****.**>
*   @copyright  Copyright (c) 2011 Lee Garner <*****@*****.**>
*   @package    paypal
*   @version    0.5.0
*   @license    http://opensource.org/licenses/gpl-2.0.php 
*               GNU Public License v2 or later
*   @filesource
*/
/** Import core glFusion functions */
require_once '../../lib-common.php';
USES_paypal_functions();
USES_paypal_class_ipn('amazon');
if ($_PP_CONF['debug_ipn'] == 1) {
    // Get the complete IPN message prior to any processing
    COM_errorLog(var_export($_POST, true));
}
$ipn = new AmazonIPN($_POST);
$ipn->Process();
Example #3
0
<?php

/**
*   IPN processor for Authorize.Net notifications.
*
*   @author     Lee Garner <*****@*****.**>
*   @copyright  Copyright (c) 2011 Lee Garner <*****@*****.**>
*   @package    paypal
*   @version    0.5.3
*   @license    http://opensource.org/licenses/gpl-2.0.php 
*               GNU Public License v2 or later
*   @filesource
*/
/** Import core glFusion functions */
require_once '../../lib-common.php';
USES_paypal_functions();
USES_paypal_class_ipn('authorizenetsim');
if ($_PP_CONF['debug_ipn'] == 1) {
    // Get the complete IPN message prior to any processing
    COM_errorLog(var_export($_POST, true));
}
$ipn = new AuthorizeNetIPN($_POST);
if ($ipn->Process()) {
    $redirect_url = 'http://dogbert.leegarner.com/dev/paypal/index.php?thanks';
} else {
    LGLIB_storeMessage($LANG_PP['pmt_error']);
    $redirect_url = 'http://dogbert.leegarner.com/dev/paypal/index.php';
}
echo "<html><head><script language=\"javascript\">\n        <!--\n        window.location=\"{$redirect_url}\";\n        //-->\n        </script>\n        </head><body><noscript><meta http-equiv=\"refresh\" content=\"1;url={$redirect_url}\"></noscript></body></html>";