- Empty shopping cart on successfull payment - Translation to Dutch - Test in live environment - Remove vars and functions that are now unused (because of merge) */ 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/ideallite/index.php'; // Setup class require_once WP_PLUGIN_DIR . '/eshop/ideallite/ideallite.class.php'; // include the class file $p = new ideallite_class(); // initiate an instance of the class $this_script = site_url(); if ($eshopoptions['checkout'] != '') { $p->autoredirect = add_query_arg('eshopaction', 'redirect', get_permalink($eshopoptions['checkout'])); } else { die('<p>' . $derror . '</p>'); } // iDeal Stuff $ideallite = $eshopoptions['ideallite']; // Set ideallite variables if (!empty($ideallite['IDEAL_HASH_KEY'])) { $p->sHashKey = $ideallite['IDEAL_HASH_KEY']; } elseif (!empty($ideallite['IDEAL_PRIVATE_KEY'])) { $p->sHashKey = $ideallite['IDEAL_PRIVATE_KEY']; }