Incomplete Payments generated on webform load

Created on 1 November 2022, over 1 year ago
Updated 7 September 2023, 10 months ago

I am noticing that when I place a credit card element on a webform the mere act of loading that webform generates an incomplete payment in my stripe account. The amount of this payment is always $1.00 and the error message is always "The customer has not entered their payment method." This incomplete payment entry shows up on Stripe even though nothing has been done on the webform itself except to load it. I am running Drupal 9.2.4, with version 2.0 of the Stripe module. Note that when I do fill out the credit card field [along with the rest of the information required in the webform] stripe_webform correctly creates a valid payment.

Create webform with credit card element. Load webform. Look at Payments on Stripe account.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States wdseelig

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States jbarone716

    I also have this issue even when the Stripe field is not visible. If the webform is filled with valid data it submits and validates correctly but every load of the webform itself produces a $1.00 charge that fails because "requires_source" is null. While this does not block functionality it is a distinct headache for those who need to work with the Stripe console.

  • πŸ‡ΊπŸ‡ΈUnited States bsnodgrass

    We confirmed the same behavior noted above, #3.

    Can someone confirm the Webform Stripe Integration module implements the Advanced Fraud Detection?

    If not can we make this a feature request?

  • πŸ‡ΊπŸ‡ΈUnited States bsnodgrass

    This behavior continues for us on 2.0.0-beta4. Changing version on Issue

  • πŸ‡ΊπŸ‡ΈUnited States bsnodgrass
  • πŸ‡ΊπŸ‡ΈUnited States bsnodgrass

    We had one of our developers look into this issue. We have confirmed that the payment intent request is submitted when the webform is opened or refreshed. According to https://stripe.com/docs/api/payment_intents there should only be one "payment intent" for each order or customer session.

    Is there a way to do this when the webform is submitted instead of when the webform is opened? If so does anyone think it should be opened as a feature request?

    In our case, we are using the legacy Card Element per https://stripe.com/docs/payments/elements#elements.

    There is a related issue: https://www.drupal.org/project/stripe/issues/3316114 ✨ Add support for Stripe Payment Element Needs review on the Stripe Module to support the new Payment Element.

  • πŸ‡ΊπŸ‡ΈUnited States jbarone716

    I for one would love to see some updates on this because there are no other options for Stripe payments on systems not running PHP8. We're also seeing issues with other functions of this module including declined cards not blocking webform submission and the inability to make the field required without trickery. It seems all the building blocks are there but it needs some attention and time from people who are far more adept than I.

Production build 0.69.0 2024