Body: <p>I have a Webform that is using the CiviCRM Webform module to collect payment for an event.  After entering payment the following error is shown:
  <a href="https://i.sstatic.net/gwnvVNNI.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/gwnvVNNI.png" alt="Authentication/Authorization Failed Username/Password is incorrect" /></a></p>
  <p>I have checked the following things:</p>
  <ol>
  <li>This error comes for both a member role and my admin role</li>
  <li>I have verified that the user (user role) can make contributions using Core CiviCRM pages</li>
  <li>I have turned off the payment for this form and the form can complete as expected without the error.</li>
  <li>I have greped my code base (including Drupal and CiviCRM) and I cannot find the error &quot;Authentication/Authorization Failed Username/Password is incorrect&quot;</li>
  <li>I wrote a custom listener and I am trying to do extra logging for instances of <em>AccessDeniedHttpException</em> and there does not appear to be an access denied exception when this error is being thrown</li>
  </ol>
  <p>I am using Drupal 9.5.11, 6.1.8, Webform CiviCRM 6.2.4, and CiviCRM 5.64.4.</p>
  <p>I believe this was working in the past in my dev environment that I do not have right now. I have checked all related code for this form and it is not checking access or making permission changes.</p>
  <p>Any help to figure out what is going on here is greatly appreciated.</p>
  <p>Thanks,</p>
  <p>Steve</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-08-26T04:04:58.053Z
Comments.Text: Hi Steve - it would help a bit if you confirmed that payments were working via CiviCRM event pages, to help understand if the problem is specific to webform.
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-08-26T23:46:05.533Z
Comments.Text: @petednz-fuzion, thank you.  I thought I included it.  I figured out the problem today.  They used to use PayPal and now use Authorize.net.  The Webform was set for PayPal.  Still does not explain how an error message is there that does not appear to be in the code.  Either way it is solved. :)
Comments.UserDisplayName: Steve
Tags: <civievent><civicontribute><webform-civicrm><contributions><paypal>
Title: Access Denied Error When Submitting Webform With Event Payment
ThreadText: # Access Denied Error When Submitting Webform With Event Payment
  
  (Asked by: username_0 on 2024-08-26)
  
  I have a Webform that is using the CiviCRM Webform module to collect payment for an event. After entering payment the following error is shown:
  [![Authentication/Authorization Failed Username/Password is incorrect](https://i.sstatic.net/gwnvVNNI.png)](https://i.sstatic.net/gwnvVNNI.png)
  
  I have checked the following things:
  
  1. This error comes for both a member role and my admin role
  2. I have verified that the user (user role) can make contributions using Core CiviCRM pages
  3. I have turned off the payment for this form and the form can complete as expected without the error.
  4. I have greped my code base (including Drupal and CiviCRM) and I cannot find the error "Authentication/Authorization Failed Username/Password is incorrect"
  5. I wrote a custom listener and I am trying to do extra logging for instances of *AccessDeniedHttpException* and there does not appear to be an access denied exception when this error is being thrown
  
  I am using Drupal 9.5.11, 6.1.8, Webform CiviCRM 6.2.4, and CiviCRM 5.64.4.
  
  I believe this was working in the past in my dev environment that I do not have right now. I have checked all related code for this form and it is not checking access or making permission changes.
  
  Any help to figure out what is going on here is greatly appreciated.
  
  Thanks,
  
  username_0
  
  **Tags:** civievent, civicontribute, webform-civicrm, contributions, paypal
  
  > **Comments:**
  > **username_1**: Hi username_0 - it would help a bit if you confirmed that payments were working via CiviCRM event pages, to help understand if the problem is specific to webform.  
  > **username_0**: @petednz-fuzion, thank you.  I thought I included it.  I figured out the problem today.  They used to use PayPal and now use Authorize.net.  The Webform was set for PayPal.  Still does not explain how an error message is there that does not appear to be in the code.  Either way it is solved. :)  
  
  ---
  
  ## 0 answers
  
  