title: Working with Shopify Order API
body: <p>I'm making a private application for my Shopify store. The application is supposed to replace the standard checkout process.
  Everything works well, the order is sent to my Shopify store and I can see it in the admin area, the only problem I'm facing is that after the order is placed the cart properties will not reset (the customer's products are still present in the cart and the most important, the cart token does not change).
  Anyone has any idea why is this happening and how I can fix it? I was thinking that maybe I'm not sending enough information to the store but I might be wrong. This is what i'm sending:</p>
  
  <pre><code>$product = $shopify('POST /admin/orders.json', array(), array
      (
        'order' =&gt; array
        (
          "email" =&gt; $email,
          "fulfilment_status" =&gt; "",
          "send_receipt" =&gt; true,
          "line_items" =&gt; $products,
          'customer' =&gt; array
          (
            "first_name" =&gt; $firstName,
            "last_name" =&gt; $name,
            "email" =&gt; $email
          ),
          'billing_address' =&gt; array
          (
            "first_name" =&gt; $firstName,
            "last_name" =&gt; $name,
            "address1" =&gt; $adress,
            "phone" =&gt; $telefon,
            "city" =&gt; $city,
            "province" =&gt; $province,
            "country" =&gt; $country,
            "zip" =&gt; $zip
          ),
          'note_attributes' =&gt; array (
          array("name" =&gt; "Company", "value" =&gt; $company),
          array("name" =&gt; "CUI","value" =&gt; $cui),
          array("name" =&gt; "Registration","value" =&gt; $reg)
          ),
          'shipping_address' =&gt; array
          (
            "first_name" =&gt; $firstName,
            "last_name" =&gt; $name,
            "address1" =&gt; $adress,
            "phone" =&gt; $phone,
            "city" =&gt; $city,
            "province" =&gt; $province,
            "province_code" =&gt; $provinceCode,
            "name" =&gt; $firstName." ".$name,
            "country_code" =&gt; $countryCode,
            "country" =&gt; $country,
            "zip" =&gt; $zip
          ),
          'shipping_lines' =&gt; $shipping,
          'financial_status' =&gt; 'pending'
        )
      ));
  </code></pre>