/** * Shopping cart class */ require_once DIR_WS_CLASSES . 'shopping_cart.php'; require_once DIR_WS_CLASSES . 'wish_list.php'; /** * Navigation History class */ require_once DIR_WS_CLASSES . 'navigation_history.php'; /** * Data for backward compatibility */ require_once DIR_WS_FUNCTIONS . 'compatibility.php'; require_once DIR_WS_CLASSES . 'order.php'; /** * The Rakuten Checkout class */ require_once 'user_classes/rakuten_checkout.php'; $rakutenCheckout = new rakuten_checkout(); $request = file_get_contents('php://input'); if (strlen(trim($request)) <= 0) { echo $rakutenCheckout->prepare_response(false); die; } try { /** * Process Rope and output result */ echo $rakutenCheckout->process_rope_request($request); } catch (Exception $e) { }
* documentation and/or other materials provided with the distribution. * * Neither the name of the Rakuten Deutschland GmbH nor the * names of its contributors may be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL RAKUTEN DEUTSCHLAND GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ include 'includes/application_top.php'; include_once DIR_FS_DOCUMENT_ROOT . 'user_classes/rakuten_checkout.php'; $rakuten_checkout = new rakuten_checkout(); if ($_SESSION['cart']->show_total() > 0) { if ($_SESSION['cart']->show_total() < $_SESSION['customers_status']['customers_status_min_order']) { $_SESSION['allow_checkout'] = 'false'; } if ($_SESSION['customers_status']['customers_status_max_order'] != 0) { if ($_SESSION['cart']->show_total() > $_SESSION['customers_status']['customers_status_max_order']) { $_SESSION['allow_checkout'] = 'false'; } } } /** * Check if checkout is allowed */ if ($_SESSION['allow_checkout'] == 'false') { xtc_redirect(xtc_href_link(FILENAME_SHOPPING_CART));