/span> <span class="nv">error</span><span class="p">):</span>
            <span class="nf">print</span><span class="p">(</span><span class="n">error</span><span class="p">)</span>
    <span class="p">}</span>
<span class="p">}</span>
</code></pre>
<h2 id='checking-out-amp-payment' class='heading'>Checking out &amp; Payment</h2>

<p>Paying for a cart is a two step process in Moltin. </p>

<p>First, check out your cart, which will return you an order:</p>
<pre class="highlight swift"><code><span class="k">sel