Answers.Body: <p>That error is from the cart service when trying to set the payment method ID on the cart during payment.</p>
  
  <p>There are 2 possible reasons the error would appear:</p>
  
  <p>1) The payment ID you are submitting is wrong</p>
  
  <pre><code>&lt;input type="hidden" name="paymentMethodId" value="theIDhere"/&gt;
  </code></pre>
  
  <p>2) In the settings (for a correctly submitted payment ID), the "Enabled to select on front-end" setting has been turned off. Screenshot: <a href="http://jmp.sh/AxoM1tI" rel="nofollow noreferrer">http://jmp.sh/AxoM1tI</a> You need this on, to allow customers to use the method on checkout.</p>
  
  <p>Hope that helps.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-17T04:27:07.710Z
Answers.Text: Oh, looks like we were typing at the same time. I JUST figured this out and thought I'd share. Thanks for the answer though!!
Answers.UserDisplayName: Darryl Hardin
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-17T04:19:34.930Z
Answers.LastActivityDate: 2017-08-17T04:19:34.930Z
Answers.UserDisplayName: Luke Holder
Body: <p>I'm very lost with the gateway. It seems that Authorize.net is highly supported with Craft Commerce but the gateway isn't working. I had the dummy gateway working perfectly fine so that when I'd go through the whole processes and the order would show up. I put in authorize.net AIM as a new gateway and now when I get to the payment it does nothing at all. I put in this code</p>
  
  <pre><code>{% if craft.config.devMode and (craft.session.hasFlash('notice') or craft.session.hasFlash('error')) %}
  
    {% set noticeFlash = craft.session.getFlash('notice')|join('|') %}
    {% set errorFlash = craft.session.getFlash('error')|join('|') %}
  
      Notice: [{{  noticeFlash }}]
      Error: [{{  errorFlash }}]
  
   {% endif %}
  </code></pre>
  
  <p>and I get back</p>
  
  <blockquote>
    <p>Error: [Payment method does not exist or is not allowed.]</p>
  </blockquote>
  
  <p>I've put in the API user and key and the link at the bottom. Am I supposed to set the gateway as default somewhere?</p>
  
Tags: <plugin-craftcommerce><payment-methods><omnipay>
Title: Authorize.net not connecting in Craft Commerce?
ThreadText: # Authorize.net not connecting in Craft Commerce?
  
  (Asked by: username_0 on 2017-08-17)
  
  I'm very lost with the gateway. It seems that Authorize.net is highly supported with Craft Commerce but the gateway isn't working. I had the dummy gateway working perfectly fine so that when I'd go through the whole processes and the order would show up. I put in authorize.net AIM as a new gateway and now when I get to the payment it does nothing at all. I put in this code
  
  ```
  {% if craft.config.devMode and (craft.session.hasFlash('notice') or craft.session.hasFlash('error')) %}
  
    {% set noticeFlash = craft.session.getFlash('notice')|join('|') %}
    {% set errorFlash = craft.session.getFlash('error')|join('|') %}
  
      Notice: [{{  noticeFlash }}]
      Error: [{{  errorFlash }}]
  
   {% endif %}
  
  ```
  
  and I get back
  
  > Error: [Payment method does not exist or is not allowed.]
  
  I've put in the API user and key and the link at the bottom. Am I supposed to set the gateway as default somewhere?
  
  **Tags:** plugin-craftcommerce, payment-methods, omnipay
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-08-17. Score: 1 | Accepted answer
  
  That error is from the cart service when trying to set the payment method ID on the cart during payment.
  
  There are 2 possible reasons the error would appear:
  
  1) The payment ID you are submitting is wrong
  
  ```
  <input type="hidden" name="paymentMethodId" value="theIDhere"/>
  
  ```
  
  2) In the settings (for a correctly submitted payment ID), the "Enabled to select on front-end" setting has been turned off. Screenshot: <http://jmp.sh/AxoM1tI> You need this on, to allow customers to use the method on checkout.
  
  Hope that helps.
  
  > **Comments:**
  > **username_0**: Oh, looks like we were typing at the same time. I JUST figured this out and thought I'd share. Thanks for the answer though!!  
  
  ---
  
  