Answers.Body: <p>Could you make sure you have CiviCRM ajax api permission set for anonymous and authenticated user?</p>
  <p>CiviCRM &gt;&gt; Administer &gt;&gt; Users and Permissions &gt;&gt; Permissions (Access Control) &gt;&gt; WordPress Access Control</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-12-14T09:50:37.837Z
Answers.Text: Hi Predeep, that was already sorted in the previous post about You don not have access to the page ;-)
Answers.UserDisplayName: Juggy69
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-12-14T11:12:51.967Z
Answers.Text: Ok so this looks like a permission issue again, if I use a "Private" browser I get the PaymentIntent failure message, if am logged in then the transaction is processed with the correct output message.
Answers.UserDisplayName: Juggy69
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-12-14T12:20:35.820Z
Answers.Text: That means the anonymous user dont have CiviCRM ajax api permission permission
Answers.UserDisplayName: Pradeep Nayak
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-12-14T12:25:26.667Z
Answers.Text: please see this post [link](https://civicrm.stackexchange.com/questions/40865/you-do-not-have-permission-to-access-this-page-contribution-page-wordpress-i)
Answers.UserDisplayName: Juggy69
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-12-14T12:32:51.777Z
Answers.Text: can you check under /wp-admin/admin.php?page=CiviCRM&q=civicrm%2Fadmin%2Faccess%2Fwp-permissions&reset=1
Answers.UserDisplayName: Pradeep Nayak
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-12-14T12:44:28.517Z
Answers.Text: I have that enabled, how do you attach and image via the comments rather than an answer?
Answers.UserDisplayName: Juggy69
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-12-14T12:47:11.657Z
Answers.Text: What is your api version in stripe?
Answers.UserDisplayName: Pradeep Nayak
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-12-14T13:00:58.263Z
Answers.Text: Do I find that in the Stripe Payment Processor extn or in Stripe itself?
Answers.UserDisplayName: Juggy69
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-12-14T13:17:09.007Z
Answers.Text: API Version apparently https://stripe.com/docs/upgrades#2020-08-27
Answers.UserDisplayName: Juggy69
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-12-14T13:24:38.803Z
Answers.Text: Was this until yesterday as changed for testing https://stripe.com/docs/upgrades#2019-12-03
Answers.UserDisplayName: Juggy69
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-12-15T01:43:50.263Z
Answers.Text: Update to this when running the following at the end of the domain /?civiwp=CiviCRM&q=civicrm%2Fajax%2Frest 
  
  {"IP":"IP Address ","level":"security","referer":null,"reason":"CSRF suspected","is_error":1,"error_message":"SECURITY ALERT: Ajax requests can only be issued by javascript clients, eg. CRM.api3()."}
  
  This is also in a private browser
Answers.UserDisplayName: Juggy69
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-12-13T17:58:48.233Z
Answers.LastActivityDate: 2021-12-14T12:33:39.417Z
Answers.LastEditDate: 2021-12-14T12:33:39.417Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>When trying to make a contribution end users are getting the following error Configuration error - unable to process paymentIntent</p>
  <p>Using CiviCRM 5.44.0, Stripe Payment Processor Extn Version 6.6.3</p>
  <p>It was working on 10/12 from 12pm as I tested several times, and also around 2pm a 3rd party made a contribution, then literally the next day it has stopped working and I have changed nothing.</p>
  <p>Setup the Payment Processors correctly as far as I can tell
  <a href="https://docs.civicrm.org/user/en/latest/contributions/payment-processors/" rel="nofollow noreferrer">Payment Processors</a><br>
  <a href="https://docs.civicrm.org/sysadmin/en/latest/setup/payment-processors/#comparison" rel="nofollow noreferrer">Payment Processors : Comparison</a></p>
  <p>And also found this
  <a href="https://lab.civicrm.org/extensions/stripe/-/issues/326" rel="nofollow noreferrer">CivicRM payment Issues</a></p>
  <pre><code>Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined method InvalidArgumentException::getRequestId() in 
  /public_html/wp-content/uploads/civicrm/ext/com.drastikbydesign.stripe/api/v3/StripePaymentintent.php:229\nStack trace:\n#0
  /public_html/wp-content/plugins/civicrm/civicrm/Civi/API/Provider/MagicFunctionProvider.php(89): civicrm_api3_stripe_paymentintent_process(Array)\n#1
  /public_html/wp-content/plugins/civicrm/civicrm/Civi/API/Kernel.php(149): Civi\\API\\Provider\\MagicFunctionProvider-&gt;invoke(Array)\n#2
  /public_html/wp-content/plugins/civicrm/civicrm/Civi/API/Kernel.php(81): Civi\\API\\Kernel-&gt;runRequest(Array)\n#3
  /public_html/wp-content/plugins/civicrm/civicrm/api/api.php(22): Civi\\API\\Kernel-&gt;runSafe
  </code></pre>
  
Tags: <wordpress><civicontribute><contributions><payment-processor>
Title: Contribution - Config Error
ThreadText: # Contribution - Config Error
  
  (Asked by: username_0 on 2021-12-13)
  
  When trying to make a contribution end users are getting the following error Configuration error - unable to process paymentIntent
  Using CiviCRM 5.44.0, Stripe Payment Processor Extn Version 6.6.3
  It was working on 10/12 from 12pm as I tested several times, and also around 2pm a 3rd party made a contribution, then literally the next day it has stopped working and I have changed nothing.
  Setup the Payment Processors correctly as far as I can tell
  Payment Processors
  Payment Processors : Comparison
  And also found this
  CivicRM payment Issues
  Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined method InvalidArgumentException::getRequestId() in 
  /public_html/wp-content/uploads/civicrm/ext/com.drastikbydesign.stripe/api/v3/StripePaymentintent.php:229\nStack trace:\n#0
  /public_html/wp-content/plugins/civicrm/civicrm/Civi/API/Provider/MagicFunctionProvider.php(89): civicrm_api3_stripe_paymentintent_process(Array)\n#1
  /public_html/wp-content/plugins/civicrm/civicrm/Civi/API/Kernel.php(149): Civi\\API\\Provider\\MagicFunctionProvider->invoke(Array)\n#2
  /public_html/wp-content/plugins/civicrm/civicrm/Civi/API/Kernel.php(81): Civi\\API\\Kernel->runRequest(Array)\n#3
  /public_html/wp-content/plugins/civicrm/civicrm/api/api.php(22): Civi\\API\\Kernel->runSafe
  
  **Tags:** wordpress, civicontribute, contributions, payment-processor
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-12-13. Score: 0
  
  Could you make sure you have CiviCRM ajax api permission set for anonymous and authenticated user?
  
  CiviCRM >> Administer >> Users and Permissions >> Permissions (Access Control) >> WordPress Access Control
  
  > **Comments:**
  > **username_0**: Hi Predeep, that was already sorted in the previous post about You don not have access to the page ;-)  
  > **username_0**: Ok so this looks like a permission issue again, if I use a "Private" browser I get the PaymentIntent failure message, if am logged in then the transaction is processed with the correct output message.  
  > **username_1**: That means the anonymous user dont have CiviCRM ajax api permission permission  
  > **username_0**: please see this post [link](https://civicrm.stackexchange.com/questions/40865/you-do-not-have-permission-to-access-this-page-contribution-page-wordpress-i)  
  > **username_1**: can you check under /wp-admin/admin.php?page=CiviCRM&q=civicrm%2Fadmin%2Faccess%2Fwp-permissions&reset=1  
  > **username_0**: I have that enabled, how do you attach and image via the comments rather than an answer?  
  > **username_1**: What is your api version in stripe?  
  > **username_0**: Do I find that in the Stripe Payment Processor extn or in Stripe itself?  
  > **username_0**: API Version apparently https://stripe.com/docs/upgrades#2020-08-27  
  > **username_0**: Was this until yesterday as changed for testing https://stripe.com/docs/upgrades#2019-12-03  
  > **username_0**: Update to this when running the following at the end of the domain /?civiwp=CiviCRM&q=civicrm%2Fajax%2Frest   {"IP":"IP Address ","level":"security","referer":null,"reason":"CSRF suspected","is_error":1,"error_message":"SECURITY ALERT: Ajax requests can only be issued by javascript clients, eg. CRM.api3()."}  This is also in a private browser  
  
  ---
  
  