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
Comments
Comment #5
damienmckennaI created a MR using changes from a coworker who doesn't have an account on d.o.
Comment #7
heddnThanks for the contributions.