<?php include "phplib/prepend.php"; require $_ENV["libdir"] . "paypal.inc"; $ipn = new IPN_Agent(); $ipn->tablename_prefix = "pp_"; $ipn->init(); $ipn->_dump_table_layout();
# This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # http://www.gnu.org/copyleft/gpl.html # */ // By default, be in error mode (to handle uncatchable runtime errors, etc) header("HTTP/1.0 503 Syntax error"); include "phplib/prepend.php"; require $_ENV["libdir"] . "paypal.inc"; $ipn = new IPN_Agent(); #$ipn->ignore_cert = true; #$ipn->ca_file = "/etc/ssl/certs/ca-certificates.crt"; #debian $ipn->ca_file = "/etc/pki/tls/certs/ca-bundle.crt"; #redhat $ipn->tablename_prefix = "pp_"; if (!$ipn->init()) { header("HTTP/1.0 500 Script error"); trigger_error("Could not initialize IPN Agent", E_USER_ERROR); } if (!$ipn->handle_ipn($_POST)) { header("HTTP/1.0 500 Script error"); trigger_error("IPN verification failed", E_USER_ERROR); } header("HTTP/1.0 200 OK"); echo "Thanks!\n";