<commit_before><?php
# include helpers
# setup needed variables for the page
include_once 'helpers/render_helper.php';
include_once 'helpers/cart_helper.php';

$cart = current_cart();

if (cart_is_empty($cart))
  header("Location: index.php");

$order_id = rand(1000, 100000);
$amount = dibs_appropriate_cart_amount($cart);
$accept_url = "http://{$_SERVER[HTTP_HOST]}/receipt.php";

?>
<!DOCTYPE html>
<html>
  <head>
    <?php include 'includes/head.php'; ?>
    <title>Checking out - Designers Remix</title>
  </head>
  <body>
    <?php include 'includes/header.php'; ?>

    <div class="container">
      <section class="main">

        <section class="order">
          <?php echo render($cart, 'cart'); ?>
          <input type="submit" form="checkout">
        </section>

        <form id="checkout" method="post" action="https://payment.architrade.com/paymentweb/start.action">
          <input type="hidden" name="test" value="yes">
          <input type="hidden" name="merchant" value="90192232"><commit_msg>Copied over some things from cart partial.<commit_after><?php
# include helpers
# setup needed variables for the page
include_once 'helpers/render_helper.php';
include_once 'helpers/cart_helper.php';

$cart = current_cart();

if (cart_is_empty($cart))
  header("Location: index.php");

$order_id = rand(1000, 100000);
$amount = dibs_appropriate_cart_amount($cart);
$accept_url = "http://{$_SERVER[HTTP_HOST]}/receipt.php";

?>
<!DOCTYPE html>
<html>
  <head>
    <?php include 'includes/head.php'; ?>
    <title>Checking out - Designers Remix</title>
  </head>
  <body>
    <?php include 'includes/header.php'; ?>

    <div class="container">
      <section class="main">

        <section class="order">
          <table>
            <thead>
              <th>Pieces</th>
              <th>Name</th>
              <th>Price</th>
            </thead>

            <tbody>
              <?php echo render($cart['line_items'], 'line_item'); ?>
            </tbody>
          </table>
          <input type="submit" form="checkout">
        </section>

        <form id="checkout" method="post" action="https://payment.architrade.com/paymentweb/start.action">
          <input type="hidden" name="test" value="yes">
          <input type="hidden" name="merchant" value="90192232">
{'fraction_non_alphanumeric': 0.16949891067538125, 'fraction_numerical': 0.01568627450980392, 'mean_word_length': 3.2205882352941178, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 53, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2913354', 'n_tokens_mistral': 763, 'n_tokens_neox': 721, 'n_words': 150}