<p>I set config variable to general config instead of commerce config. That's all..</p>

CC BY-SA 4.0
2021-07-01T05:46:41.240Z
2021-07-01T05:46:41.240Z
Taher Kathiriya
<p>Recently Craft provide checkout without payment but not working for me. I followed the instruction of craft doc. set config variable: <strong>allowCheckoutWithoutPayment</strong></p>
<p><a href="https://craftcms.com/docs/commerce/3.x/making-payments.html#deferred-payment-at-checkout" rel="nofollow noreferrer">https://craftcms.com/docs/commerce/3.x/making-payments.html#deferred-payment-at-checkout</a></p>
<p>Here is my code.</p>
<pre><code>&lt;form autocomplete=&quot;off&quot; novalidate method=&quot;post&quot; class=&quot;form&quot; id=&quot;paymentForm&quot;&gt;
            &lt;div class=&quot;hidden&quot; style=&quot;display: none;&quot;&gt;
                {{ csrfInput() }}
                {{ hiddenInput('action', 'commerce/cart/complete') }}
                {{ redirectInput('/store/order-placed/{number}') }}
            &lt;/div&gt;

            &lt;div class=&quot;mt-2 flex items-center justify-between&quot;&gt;
                &lt;div class=&quot;show-inline&quot;&gt;
                    &lt;button type=&quot;submit&quot; name=&quot;submit&quot; class=&quot;btn btn-sm btn-indigo&quot;&gt;Submit Your Quote&lt;/button&gt;
                    &lt;img src=&quot;{{ siteUrl }}assets/images/ajax-loader.gif&quot; class=&quot;ajax-loader&quot;&gt;
                &lt;/div&gt;
            &lt;/div&gt;
        &lt;/form&gt;
</code></pre>
<p>Thanks for help cheers</p>

<craft3><plugin-craftcommerce3><payment>
Checkout Without Payment
# Checkout Without Payment

(Asked by: username_0 on 2021-06-29)

Recently Craft provide checkout without payment but not working for me. I followed the instruction of craft doc. set config variable: allowCheckoutWithoutPayment
https://craftcms.com/docs/commerce/3.x/making-payments.html#deferred-payment-at-checkout
Here is my code.

            
                {{ csrfInput() }}
                {{ hiddenInput('action', 'commerce/cart/complete') }}
                {{ redirectInput('/store/order-placed/{number}') }}
            

            
                
                    Submit Your Quote
                    
                
            
        

Thanks for help cheers

**Tags:** craft3, plugin-craftcommerce3, payment

---

## 1 answers

### Answer by username_0 on 2021-07-01. Score: 2 | Accepted answer

I set config variable to general config instead of commerce config. That's all..


---

