Problem/Motivation

The way the module functionality is built, any time the field is loaded it ends up creating a payment intent. This can have serious repercussions with hundreds or thousands of empty payment intents created in Stripe.

Steps to reproduce

Use Stripe Webform on a Webform, notice how lots of payment intents are created.

Proposed resolution

Only create the payment intent during the form validation process.

Remaining tasks

Review.
Test coverage.

User interface changes

No changes.

API changes

The payment intent is added during field validation rather than during field creation.

Data model changes

n/a

Issue fork stripe-3572924

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

damienmckenna created an issue. See original summary.

damienmckenna changed the visibility of the branch 3572924-delay-intent to hidden.

damienmckenna changed the visibility of the branch 3572924-delay-intent to active.

damienmckenna’s picture

Status: Active » Needs review

I created a MR using changes from a coworker who doesn't have an account on d.o.

  • heddn committed 21c23433 on 2.x authored by damienmckenna
    feat: #3572924 Change field logic so that payment intent only created...
heddn’s picture

Status: Needs review » Fixed

Thanks for the contributions.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.