I'm building a site that is driven by Craft Commerce but does not take payment online. Rather, the customer adds what they need to a cart and submits to the company for a quote.
I need to build a contact form that allows the customer to submit their name, email, phone, and company name. When submitted, the form should also turn the cart into an order. I've tried setting 'isCompleted' to 'true' and setting the 'dateOrdered' but cannot seem to get the cart to transition into an order.
Below is the code I've been testing to try to get the cart to convert into an order. I feel like I'm missing something obvious. Any advice is appreciated.
<form method="POST">
<input type="hidden" name="action" value="commerce/cart/updateCart">
<input type="hidden" name="isCompleted" value="1">
<input type="hidden" name="dateOrdered" value="{{ now.format('Y-m-d H:i:s')}}">
{{ getCsrfInput() }}
<input type="submit" value="Submit">
</form>
Edit: Here's the working code as suggested below, where "2" is the ID of the manual payment method I created.
<form method="POST">
<input type="hidden" name="action" value="commerce/payments/pay">
<input type="hidden" name="paymentMethodId" value="2">
{{ getCsrfInput() }}
<input type="submit" value="Submit">
</form>