Answers.Body: <p>Main issue here was that payment method field must be on the same webform page as the actual payment element or it won't work.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-11-03T11:19:27.667Z
Answers.LastActivityDate: 2022-11-03T11:19:27.667Z
Answers.UserDisplayName: Matthew Wire
Body: <p>Creating a donation page using D9 webform and Civi 5.51.3.  Payment processor options are Stripe and Pay Later.  In each case when donation is submitted the Civi error is &quot;Unable to complete payment! Missing paymentIntentID&quot; and the user is sent to most recent Civi page.</p>
  <p>I can see similar discussions such as <a href="https://lab.civicrm.org/extensions/stripe/-/issues/233" rel="nofollow noreferrer">https://lab.civicrm.org/extensions/stripe/-/issues/233</a> and <a href="https://lab.civicrm.org/extensions/stripe/-/issues/348" rel="nofollow noreferrer">https://lab.civicrm.org/extensions/stripe/-/issues/348</a></p>
  <p>Log error:
  paymentIntentID not found. $params: Civi\Payment\PropertyBag Object ( [props:protected] =&gt; Array ( [default] =&gt; Array ( [firstName] =&gt; Nubay [lastName] =&gt; Admin [billingStreetAddress] =&gt; 35 Pickwick Road [billingPostalCode] =&gt; 02465 [billingCity] =&gt; Newton [country_id] =&gt; 1228 [state_province_id] =&gt; 1020 [email] =&gt; xxx.org [enable_contribution] =&gt; 1 [payment_processor_id] =&gt; 1 [is_test] =&gt; 0 [financial_type_id] =&gt; 1 [total_amount] =&gt; 10 [billing_address_first_name] =&gt; Nubay [billing_address_last_name] =&gt; xxx [billing_address_street_address] =&gt; xxx [billing_address_postal_code] =&gt; 02465 [billing_address_city] =&gt; Newton [billing_address_country_id] =&gt; 1228 [billing_address_state_province_id] =&gt; 1020 [currency] =&gt; USD [skipLineItem] =&gt; 1 [skipRecentView] =&gt; 1 [contactID] =&gt; 2 [invoiceID] =&gt; 4e8123456789 [tax_amount] =&gt; 0 [description] =&gt; Webform Payment: Webform Contributions V2 [source] =&gt; Test New Webform Contributions [financialType_name] =&gt; Donation [financialTypeID] =&gt; 1 [non_deductible_amount] =&gt; 0 [civicrm_1_contribution_1_contribution_billing_address_first_name] =&gt; Nubay [civicrm_1_contribution_1_contribution_billing_address_last_name] =&gt; xxx [civicrm_1_contribution_1_contribution_billing_address_street_address] =&gt; xxx [civicrm_1_contribution_1_contribution_billing_address_postal_code] =&gt; 02465 [civicrm_1_contribution_1_contribution_billing_address_city] =&gt; Newton [civicrm_1_contribution_1_contribution_billing_address_country_id] =&gt; 1228 [civicrm_1_contribution_1_contribution_billing_address_state_province_id] =&gt; 1020 [op] =&gt; SUBMIT YOUR DONATION [form_build_id] =&gt; form-P1pw_qZIT_yOiXUxxxve78C1NevEzhJx550fmRtdRc [form_token] =&gt; itRvLxCSoVzZCi8xxxXAsPrIEAu5_rpE48IhD_glddA [form_id] =&gt; webform_submission_webform_contributions_v2_block_content_2_add_form [payment_instrument_id] =&gt; 1 [payment_processor] =&gt; 1 [check_permissions] =&gt; [contribution_status_id] =&gt; Pending [amount] =&gt; 10 [contributionID] =&gt; 940 [version] =&gt; 3 [isRecur] =&gt; [error_url] =&gt; [setupIntentID] =&gt; [paymentMethodID] =&gt; [paymentIntentID] =&gt; ) ) [suppressLegacyWarnings:protected] =&gt; 1 [lastWarning] =&gt; )</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-10-27T14:03:26.917Z
Comments.Text: Further testing - If options are only to use Pay Later, no error.  Adding Paypal as an option - no error.  so it seems it is a Stripe error that is triggered if Stripe is an option even if not selected.
Comments.UserDisplayName: Dave T
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-10-27T19:35:16.520Z
Comments.Text: Also seems to be close if not the same issue as here - https://lab.civicrm.org/extensions/stripe/-/issues/219
Comments.UserDisplayName: Dave T
Tags: <webform-civicrm><payment-processor><stripe>
Title: Civi error using D9 webform for contribution payments. "Unable to complete payment! Missing paymentIntentID"
ThreadText: # Civi error using D9 webform for contribution payments. "Unable to complete payment! Missing paymentIntentID"
  
  (Asked by: username_0 on 2022-10-27)
  
  Creating a donation page using D9 webform and Civi 5.51.3. Payment processor options are Stripe and Pay Later. In each case when donation is submitted the Civi error is "Unable to complete payment! Missing paymentIntentID" and the user is sent to most recent Civi page.
  
  I can see similar discussions such as <https://lab.civicrm.org/extensions/stripe/-/issues/233> and <https://lab.civicrm.org/extensions/stripe/-/issues/348>
  
  Log error:
  paymentIntentID not found. $params: Civi\Payment\PropertyBag Object ( [props:protected] => Array ( [default] => Array ( [firstName] => Nubay [lastName] => Admin [billingStreetAddress] => 35 Pickwick Road [billingPostalCode] => 02465 [billingCity] => Newton [country\_id] => 1228 [state\_province\_id] => 1020 [email] => xxx.org [enable\_contribution] => 1 [payment\_processor\_id] => 1 [is\_test] => 0 [financial\_type\_id] => 1 [total\_amount] => 10 [billing\_address\_first\_name] => Nubay [billing\_address\_last\_name] => xxx [billing\_address\_street\_address] => xxx [billing\_address\_postal\_code] => 02465 [billing\_address\_city] => Newton [billing\_address\_country\_id] => 1228 [billing\_address\_state\_province\_id] => 1020 [currency] => USD [skipLineItem] => 1 [skipRecentView] => 1 [contactID] => 2 [invoiceID] => 4e8123456789 [tax\_amount] => 0 [description] => Webform Payment: Webform Contributions V2 [source] => Test New Webform Contributions [financialType\_name] => Donation [financialTypeID] => 1 [non\_deductible\_amount] => 0 [civicrm\_1\_contribution\_1\_contribution\_billing\_address\_first\_name] => Nubay [civicrm\_1\_contribution\_1\_contribution\_billing\_address\_last\_name] => xxx [civicrm\_1\_contribution\_1\_contribution\_billing\_address\_street\_address] => xxx [civicrm\_1\_contribution\_1\_contribution\_billing\_address\_postal\_code] => 02465 [civicrm\_1\_contribution\_1\_contribution\_billing\_address\_city] => Newton [civicrm\_1\_contribution\_1\_contribution\_billing\_address\_country\_id] => 1228 [civicrm\_1\_contribution\_1\_contribution\_billing\_address\_state\_province\_id] => 1020 [op] => SUBMIT YOUR DONATION [form\_build\_id] => form-P1pw\_qZIT\_yOiXUxxxve78C1NevEzhJx550fmRtdRc [form\_token] => itRvLxCSoVzZCi8xxxXAsPrIEAu5\_rpE48IhD\_glddA [form\_id] => webform\_submission\_webform\_contributions\_v2\_block\_content\_2\_add\_form [payment\_instrument\_id] => 1 [payment\_processor] => 1 [check\_permissions] => [contribution\_status\_id] => Pending [amount] => 10 [contributionID] => 940 [version] => 3 [isRecur] => [error\_url] => [setupIntentID] => [paymentMethodID] => [paymentIntentID] => ) ) [suppressLegacyWarnings:protected] => 1 [lastWarning] => )
  
  **Tags:** webform-civicrm, payment-processor, stripe
  
  > **Comments:**
  > **username_0**: Further testing - If options are only to use Pay Later, no error.  Adding Paypal as an option - no error.  so it seems it is a Stripe error that is triggered if Stripe is an option even if not selected.  
  > **username_0**: Also seems to be close if not the same issue as here - https://lab.civicrm.org/extensions/stripe/-/issues/219  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-11-03. Score: 1
  
  Main issue here was that payment method field must be on the same webform page as the actual payment element or it won't work.
  
  
  ---
  
  