/* based on: * PHP Paypal IPN Integration Class Demonstration File * 4.16.2005 - Micah Carrick, email@micahcarrick.com */ global $wpdb, $wp_query, $wp_rewrite, $blog_id, $eshopoptions; $detailstable = $wpdb->prefix . 'eshop_orders'; $derror = __('There appears to have been an error, please contact the site admin', 'eshop'); //sanitise include_once WP_PLUGIN_DIR . '/eshop/cart-functions.php'; $_POST = sanitise_array($_POST); include_once WP_PLUGIN_DIR . '/eshop/ogone/index.php'; // Setup class require_once WP_PLUGIN_DIR . '/eshop/ogone/ogone.class.php'; // include the class file $p = new ogone_class(); // initiate an instance of the class if ($eshopoptions['status'] == 'live') { $p->ogone_url = 'https://secure.ogone.com/ncol/prod/orderstandard.asp'; // ogone url } else { $p->ogone_url = 'https://secure.ogone.com/ncol/test/orderstandard.asp'; // testing ogone url } $this_script = site_url(); if ($eshopoptions['checkout'] != '') { $p->autoredirect = add_query_arg('eshopaction', 'redirect', get_permalink($eshopoptions['checkout'])); } else { die('<p>' . $derror . '</p>'); } // if there is no action variable, set the default action of 'process'
/* based on: * PHP Paypal IPN Integration Class Demonstration File * 4.16.2005 - Micah Carrick, email@micahcarrick.com */ global $wpdb, $wp_query, $wp_rewrite, $blog_id, $eshopoptions; $detailstable = $wpdb->prefix . 'eshop_orders'; $derror = __('There appears to have been an error, please contact the site admin', 'eshop'); //sanitise include_once ESHOP_PATH . 'cart-functions.php'; $espost = sanitise_array($espost); include_once ESHOP_PATH . 'ogone/index.php'; // Setup class require_once ESHOP_PATH . 'ogone/ogone.class.php'; // include the class file $p = new ogone_class(); // initiate an instance of the class if ($eshopoptions['status'] == 'live') { $p->ogone_url = 'https://secure.ogone.com/ncol/prod/orderstandard.asp'; // ogone url } else { $p->ogone_url = 'https://secure.ogone.com/ncol/test/orderstandard.asp'; // testing ogone url } $this_script = site_url(); if ($eshopoptions['checkout'] != '') { $p->autoredirect = add_query_arg('eshopaction', 'redirect', get_permalink($eshopoptions['checkout'])); } else { die('<p>' . $derror . '</p>'); } // if there is no action variable, set the default action of 'process'